Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 95.81 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001037/0.001037, allocations: 208.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000286/0.0002863, allocations: 11.98 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1075, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002141/0.1096, allocations: 1.66 MB / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.1107, allocations: 0.5732 MB / 360.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.047e-05/0.1107, allocations: 3.938 kB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.486e-05/0.1108, allocations: 19.84 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.1109, allocations: 39.91 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/0.1113, allocations: 91.25 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001706/0.1115, allocations: 111.8 kB / 360.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.1117, allocations: 37.45 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.1119, allocations: 75.7 kB / 360.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.112, allocations: 67.73 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.112, allocations: 8 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.84e-05/0.1121, allocations: 19.98 kB / 360.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.774e-05/0.1122, allocations: 23.91 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.782e-05/0.1122, allocations: 53.64 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.1124, allocations: 123.9 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1124, allocations: 0 / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1124, allocations: 0 / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1124, allocations: 0 / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0007785/0.1132, allocations: 454.7 kB / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.1133, allocations: 8.031 kB / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.706e-05/0.1133, allocations: 50.48 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003876/0.1137, allocations: 55.78 kB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.1139, allocations: 194.1 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.1139, allocations: 4 kB / 361.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.114, allocations: 19.94 kB / 361.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.1143, allocations: 152 kB / 362 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1143, allocations: 4 kB / 362 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.1144, allocations: 8 kB / 362 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.393e-06/0.1144, allocations: 4 kB / 362 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002683/0.1147, allocations: 95.94 kB / 362.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009041/0.1156, allocations: 0.5033 MB / 362.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.1159, allocations: 114.4 kB / 362.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.1159, allocations: 160 / 362.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.1159, allocations: 38.56 kB / 362.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.1159, allocations: 0 / 362.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004535/0.1164, allocations: 165.4 kB / 362.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.1165, allocations: 102.8 kB / 363 MB, free: 8.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.1166, allocations: 167.6 kB / 363.2 MB, free: 8.523 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.1167, allocations: 25.7 kB / 363.2 MB, free: 8.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.937e-05/0.1167, allocations: 119.9 kB / 363.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.1168, allocations: 23.64 kB / 363.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.024e-05/0.1168, allocations: 4 kB / 363.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1169, allocations: 322.8 kB / 363.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.117, allocations: 39.98 kB / 363.7 MB, free: 7.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.1172, allocations: 80.2 kB / 363.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.1173, allocations: 56 kB / 363.9 MB, free: 7.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1173, allocations: 0 / 363.9 MB, free: 7.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003266/0.1177, allocations: 153.4 kB / 364 MB, free: 7.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.1177, allocations: 4 kB / 364 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1177, allocations: 0 / 364 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1177, allocations: 11.98 kB / 364 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000577/0.1183, allocations: 83.86 kB / 364.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.1196, allocations: 1.402 MB / 365.5 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.1198, allocations: 32.14 kB / 365.5 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.1198, allocations: 3.984 kB / 365.5 MB, free: 6.004 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.1199, allocations: 124.2 kB / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.12, allocations: 7.906 kB / 365.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000451/0.1204, allocations: 167.1 kB / 365.8 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1205, allocations: 4 kB / 365.8 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.1205, allocations: 0 / 365.8 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.1205, allocations: 0 / 365.8 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002251/0.1207, allocations: 233.5 kB / 366.1 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1207, allocations: 0 / 366.1 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.1209, allocations: 27.97 kB / 366.1 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.1211, allocations: 48.72 kB / 366.1 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.1211, allocations: 0 / 366.1 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009689/0.1221, allocations: 1.304 MB / 367.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1221, allocations: 0 / 367.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005829/0.1227, allocations: 300.3 kB / 367.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.723e-05/0.1228, allocations: 85.05 kB / 367.8 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.1228, allocations: 3.984 kB / 367.8 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.123, allocations: 20.06 kB / 367.8 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.123, allocations: 7.984 kB / 367.9 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.123, allocations: 0 / 367.9 MB, free: 3.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.178e-05/0.1231, allocations: 130.5 kB / 368 MB, free: 3.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1231, allocations: 0 / 368 MB, free: 3.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000315/0.1235, allocations: 39.94 kB / 368 MB, free: 3.289 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008765/0.1243, allocations: 0.8385 MB / 368.9 MB, free: 2.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006842/0.125, allocations: 140 kB / 369 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1251, allocations: 0 / 369 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.1254, allocations: 170.8 kB / 369.2 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.1255, allocations: 12 kB / 369.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.1273, allocations: 1.127 MB / 370.3 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.1276, allocations: 0.716 MB / 371 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.991e-05/0.1277, allocations: 16.55 kB / 371 MB, free: 156 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.065e-05/0.1277, allocations: 39.42 kB / 371.1 MB, free: 116 kB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1277, allocations: 0 / 371.1 MB, free: 116 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2508/0.3785, allocations: 2.835 MB / 373.9 MB, free: 19.13 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/0.3787, allocations: 217 kB / 374.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.911/2.29, allocations: 0.75 kB / 374.1 MB, free: 18.89 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat