Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009218/0.0009218, allocations: 96.84 kB / 16.95 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 184.7 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.826/1.826, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004607/0.0004611, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1211, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002528/0.1237, allocations: 1.667 MB / 330.1 MB, free: 2.301 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.1249, allocations: 0.5662 MB / 330.7 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.079e-05/0.125, allocations: 0 / 330.7 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.23e-05/0.1251, allocations: 19.84 kB / 330.7 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.1253, allocations: 35.7 kB / 330.7 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004304/0.1257, allocations: 79.83 kB / 330.8 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.126, allocations: 167.3 kB / 331 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.1262, allocations: 33.47 kB / 331 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.1264, allocations: 71.7 kB / 331.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.1265, allocations: 63.69 kB / 331.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.1266, allocations: 8 kB / 331.1 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.868e-05/0.1266, allocations: 12 kB / 331.2 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.355e-05/0.1266, allocations: 31.91 kB / 331.2 MB, free: 1.211 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.397e-05/0.1267, allocations: 45.64 kB / 331.2 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.1269, allocations: 123.9 kB / 331.3 MB, free: 1.039 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.048e-05/0.1269, allocations: 3.938 kB / 331.4 MB, free: 1.035 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.499e-06/0.1269, allocations: 0 / 331.4 MB, free: 1.035 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1269, allocations: 0 / 331.4 MB, free: 1.035 MB / 270.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.0008309/0.1278, allocations: 454.7 kB / 331.8 MB, free: 0.543 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.1278, allocations: 12.03 kB / 331.8 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.151e-05/0.1279, allocations: 34.56 kB / 331.8 MB, free: 500 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.885e-05/0.128, allocations: 15.81 kB / 331.9 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.1282, allocations: 198.8 kB / 332.1 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.1282, allocations: 8 kB / 332.1 MB, free: 236 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.1283, allocations: 19.91 kB / 332.1 MB, free: 216 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.1287, allocations: 152 kB / 332.2 MB, free: 48 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.1287, allocations: 0 / 332.2 MB, free: 48 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.1287, allocations: 4 kB / 332.2 MB, free: 44 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.1287, allocations: 4 kB / 332.2 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002834/0.129, allocations: 95.94 kB / 332.3 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.1301, allocations: 0.5072 MB / 332.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.1304, allocations: 110.5 kB / 332.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.1306, allocations: 72.72 kB / 333 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.1307, allocations: 4 kB / 333 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/0.1307, allocations: 38.56 kB / 333.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.1307, allocations: 4 kB / 333.1 MB, free: 15.13 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004801/0.1312, allocations: 149.7 kB / 333.2 MB, free: 14.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.1313, allocations: 102.8 kB / 333.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.1316, allocations: 174 kB / 333.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.1316, allocations: 25.7 kB / 333.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.467e-05/0.1317, allocations: 115.9 kB / 333.6 MB, free: 14.53 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.037e-05/0.1317, allocations: 23.64 kB / 333.6 MB, free: 14.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-06/0.1317, allocations: 4 kB / 333.6 MB, free: 14.5 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1319, allocations: 318.8 kB / 334 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.1321, allocations: 47.91 kB / 334 MB, free: 14.13 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.1322, allocations: 88.08 kB / 334.1 MB, free: 14.03 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.1324, allocations: 48.33 kB / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1324, allocations: 0 / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003258/0.1327, allocations: 157.3 kB / 334.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.1327, allocations: 7.984 kB / 334.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1328, allocations: 4.031 kB / 334.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1328, allocations: 4 kB / 334.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005658/0.1333, allocations: 83.86 kB / 334.4 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.1351, allocations: 1.398 MB / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.1353, allocations: 24.08 kB / 335.8 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.1353, allocations: 4 kB / 335.8 MB, free: 12.16 MB / 286.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.0001888/0.1355, allocations: 121.8 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.443e-05/0.1355, allocations: 15.86 kB / 335.9 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004896/0.136, allocations: 159.1 kB / 336.1 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.136, allocations: 8.031 kB / 336.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.1361, allocations: 0 / 336.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1361, allocations: 3.984 kB / 336.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009264/0.137, allocations: 472 kB / 336.6 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.137, allocations: 0 / 336.6 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.1372, allocations: 23.98 kB / 336.6 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003299/0.1375, allocations: 40.84 kB / 336.6 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1375, allocations: 4 kB / 336.6 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.139, allocations: 1.3 MB / 337.9 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.139, allocations: 0 / 337.9 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006653/0.1397, allocations: 297 kB / 338.2 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.1398, allocations: 93.09 kB / 338.3 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.1398, allocations: 4 kB / 338.3 MB, free: 9.391 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.14, allocations: 15.98 kB / 338.3 MB, free: 9.375 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/0.1401, allocations: 11.94 kB / 338.4 MB, free: 9.363 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.1401, allocations: 4 kB / 338.4 MB, free: 9.359 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.1403, allocations: 119.2 kB / 338.5 MB, free: 9.242 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1403, allocations: 4 kB / 338.5 MB, free: 9.238 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.1406, allocations: 35.94 kB / 338.5 MB, free: 9.203 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.001161/0.1418, allocations: 0.835 MB / 339.3 MB, free: 8.336 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007524/0.1425, allocations: 143.9 kB / 339.5 MB, free: 8.195 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.1426, allocations: 3.938 kB / 339.5 MB, free: 8.191 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004231/0.143, allocations: 166.7 kB / 339.7 MB, free: 8.016 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.1433, allocations: 15.94 kB / 339.7 MB, free: 8 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.1463, allocations: 1.14 MB / 340.8 MB, free: 6.809 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004379/0.1468, allocations: 0.7118 MB / 341.5 MB, free: 6.07 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.192e-05/0.1469, allocations: 16.55 kB / 341.5 MB, free: 6.055 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.779e-05/0.147, allocations: 39.42 kB / 341.6 MB, free: 6.016 MB / 286.1 MB Notification: Performance of SimCode: time 1.533e-06/0.147, allocations: 0 / 341.6 MB, free: 6.016 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.1673, allocations: 2.921 MB / 344.5 MB, free: 3.105 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002409/0.1676, allocations: 230.6 kB / 344.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/2.281, allocations: 0 / 344.7 MB, free: 2.859 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat