Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001096, allocations: 180.8 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000909/0.000909, allocations: 97.66 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002802/0.0002801, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2628, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09952/0.3623, allocations: 78.3 MB / 479.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.3626, allocations: 71.97 kB / 480 MB, free: 2.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01542/0.378, allocations: 5.854 MB / 485.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3781, allocations: 0 / 485.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.801e-05/0.3781, allocations: 8 kB / 485.8 MB, free: 12.23 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.0009285/0.379, allocations: 0.6084 MB / 486.4 MB, free: 11.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.3791, allocations: 12.03 kB / 486.4 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.727e-05/0.3792, allocations: 74.53 kB / 486.5 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.657e-05/0.3793, allocations: 51.44 kB / 486.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003306/0.3796, allocations: 272.8 kB / 486.8 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.3797, allocations: 40.94 kB / 486.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.3797, allocations: 47.95 kB / 486.9 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000689/0.3804, allocations: 439.3 kB / 487.3 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.3805, allocations: 11.98 kB / 487.4 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.3805, allocations: 16 kB / 487.4 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3805, allocations: 12 kB / 487.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005113/0.3811, allocations: 279.8 kB / 487.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.383, allocations: 1.33 MB / 489 MB, free: 8.836 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004097/0.3834, allocations: 250.8 kB / 489.2 MB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.3835, allocations: 4.484 kB / 489.2 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.3835, allocations: 42.5 kB / 489.3 MB, free: 8.523 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.433e-06/0.3835, allocations: 0 / 489.3 MB, free: 8.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001285/0.3848, allocations: 0.5581 MB / 489.8 MB, free: 7.938 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.3849, allocations: 239.3 kB / 490.1 MB, free: 7.648 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.3851, allocations: 186 kB / 490.2 MB, free: 7.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.3851, allocations: 41.64 kB / 490.3 MB, free: 7.414 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.3853, allocations: 196.3 kB / 490.5 MB, free: 7.219 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.041e-05/0.3854, allocations: 94.56 kB / 490.6 MB, free: 7.125 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.286e-05/0.3854, allocations: 4 kB / 490.6 MB, free: 7.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3855, allocations: 338.8 kB / 490.9 MB, free: 6.781 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.3857, allocations: 83.97 kB / 491 MB, free: 6.699 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.3859, allocations: 151.4 kB / 491.1 MB, free: 6.523 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002507/0.3861, allocations: 112.9 kB / 491.2 MB, free: 6.414 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3861, allocations: 0 / 491.2 MB, free: 6.414 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000436/0.3866, allocations: 280.9 kB / 491.5 MB, free: 6.133 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3866, allocations: 4 kB / 491.5 MB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.3866, allocations: 0 / 491.5 MB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3866, allocations: 4 kB / 491.5 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/0.387, allocations: 83.91 kB / 491.6 MB, free: 6.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.387, allocations: 4 kB / 491.6 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.3872, allocations: 35.69 kB / 491.6 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.3872, allocations: 7.953 kB / 491.7 MB, free: 5.996 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.3873, allocations: 153.8 kB / 491.8 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.842e-05/0.3874, allocations: 23.72 kB / 491.8 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.452e-05/0.3875, allocations: 34.64 kB / 491.9 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3875, allocations: 3.938 kB / 491.9 MB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3875, allocations: 8 kB / 491.9 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3875, allocations: 3.984 kB / 491.9 MB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004104/0.3879, allocations: 408.9 kB / 492.3 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3879, allocations: 0 / 492.3 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002727/0.3882, allocations: 51.97 kB / 492.3 MB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002801/0.3885, allocations: 92.73 kB / 492.4 MB, free: 5.168 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.3885, allocations: 4 kB / 492.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001816/0.3904, allocations: 1.855 MB / 494.3 MB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3904, allocations: 0 / 494.3 MB, free: 3.176 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007399/0.3911, allocations: 0.5175 MB / 494.8 MB, free: 2.637 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.719e-05/0.3912, allocations: 100.8 kB / 494.9 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.3912, allocations: 16.06 kB / 494.9 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.3914, allocations: 12 kB / 494.9 MB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.3915, allocations: 23.95 kB / 494.9 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.3915, allocations: 12.11 kB / 495 MB, free: 2.457 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001191/0.3916, allocations: 152.5 kB / 495.1 MB, free: 2.309 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3916, allocations: 0 / 495.1 MB, free: 2.309 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000337/0.392, allocations: 107.7 kB / 495.2 MB, free: 2.203 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * 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 (18): * Single equations (assignments): 17 * 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: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001046/0.393, allocations: 1.072 MB / 496.3 MB, free: 1.105 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003863/0.3934, allocations: 223.9 kB / 496.5 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3934, allocations: 4 kB / 496.5 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000409/0.3938, allocations: 274.5 kB / 496.8 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.3941, allocations: 30.86 kB / 496.8 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3966, allocations: 2.055 MB / 498.9 MB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.3969, allocations: 0.795 MB / 499.7 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.4e-05/0.397, allocations: 21.89 kB / 499.7 MB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.3972, allocations: 108 kB / 499.8 MB, free: 13.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.244e-06/0.3972, allocations: 0 / 499.8 MB, free: 13.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01752/0.4147, allocations: 5.345 MB / 0.4933 GB, free: 8.332 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/0.4149, allocations: 207.2 kB / 0.4935 GB, free: 8.086 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.148, allocations: 3.938 kB / 0.4935 GB, free: 8.082 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat