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.001121/0.001121, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 221.5 MB / 230.3 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008784/0.0008785, allocations: 89.72 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.412e-05/1.415e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1127, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3536/0.4663, allocations: 77.57 MB / 465.1 MB, free: 1.137 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.4667, allocations: 71.97 kB / 465.2 MB, free: 1.066 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.016/0.4827, allocations: 5.8 MB / 471 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4828, allocations: 0 / 471 MB, free: 11.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.996e-05/0.4828, allocations: 8 kB / 471 MB, free: 11.27 MB / 346.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.0009594/0.4838, allocations: 0.597 MB / 471.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.4838, allocations: 12.03 kB / 471.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.927e-05/0.484, allocations: 39.53 kB / 471.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003519/0.4843, allocations: 271.1 kB / 471.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.4843, allocations: 12 kB / 471.9 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.893e-05/0.4844, allocations: 28 kB / 472 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004758/0.4849, allocations: 246.5 kB / 472.2 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005627/0.4855, allocations: 369.5 kB / 472.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.4855, allocations: 0 / 472.6 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.4855, allocations: 3.938 kB / 472.6 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.4856, allocations: 12 kB / 472.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.4873, allocations: 1.251 MB / 473.8 MB, free: 8.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003674/0.4877, allocations: 219 kB / 474 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.488, allocations: 177.3 kB / 474.2 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.4881, allocations: 4 kB / 474.2 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.4881, allocations: 35.06 kB / 474.2 MB, free: 7.797 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.984e-06/0.4881, allocations: 4 kB / 474.2 MB, free: 7.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.000615/0.4887, allocations: 254.1 kB / 474.5 MB, free: 7.535 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.4889, allocations: 239.3 kB / 474.7 MB, free: 7.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.489, allocations: 153.8 kB / 474.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.4891, allocations: 26.27 kB / 474.9 MB, free: 7.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.4892, allocations: 212.1 kB / 475.1 MB, free: 6.844 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.352e-05/0.4893, allocations: 94.56 kB / 475.2 MB, free: 6.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.4893, allocations: 0 / 475.2 MB, free: 6.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4894, allocations: 338.8 kB / 475.5 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.4896, allocations: 60 kB / 475.6 MB, free: 6.352 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.4897, allocations: 148.7 kB / 475.7 MB, free: 6.176 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.4899, allocations: 84.45 kB / 475.8 MB, free: 6.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.4899, allocations: 0 / 475.8 MB, free: 6.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003553/0.4903, allocations: 233.2 kB / 476.1 MB, free: 5.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.4903, allocations: 4 kB / 476.1 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4903, allocations: 0 / 476.1 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.4903, allocations: 4 kB / 476.1 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003303/0.4907, allocations: 83.89 kB / 476.1 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.4907, allocations: 3.938 kB / 476.1 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.4908, allocations: 23.81 kB / 476.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.4908, allocations: 11.98 kB / 476.2 MB, free: 5.73 MB / 346.7 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 () * 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 9.657e-05/0.491, allocations: 116.8 kB / 476.3 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004247/0.4914, allocations: 262.9 kB / 476.5 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.349e-05/0.4914, allocations: 19.81 kB / 476.6 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.094e-05/0.4915, allocations: 27.39 kB / 476.6 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.4915, allocations: 7.953 kB / 476.6 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.4915, allocations: 8 kB / 476.6 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.4915, allocations: 0 / 476.6 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008952/0.4925, allocations: 0.6789 MB / 477.3 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.4925, allocations: 3.953 kB / 477.3 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.4927, allocations: 47.97 kB / 477.3 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003005/0.4931, allocations: 84.84 kB / 477.4 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.4931, allocations: 4 kB / 477.4 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001706/0.4948, allocations: 1.757 MB / 479.2 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.4948, allocations: 80 / 479.2 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000624/0.4954, allocations: 471 kB / 479.6 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.361e-05/0.4955, allocations: 92.92 kB / 479.7 MB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.4956, allocations: 12.09 kB / 479.7 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.4957, allocations: 7.938 kB / 479.8 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.788e-05/0.4958, allocations: 24.03 kB / 479.8 MB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.4958, allocations: 8 kB / 479.8 MB, free: 1.895 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.388e-05/0.4959, allocations: 124.3 kB / 479.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4959, allocations: 0 / 479.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003976/0.4963, allocations: 103.5 kB / 480 MB, free: 1.672 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * Number of discrete variables: 0 () * Number of discrete 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.0009583/0.4973, allocations: 1.07 MB / 481.1 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003288/0.4976, allocations: 192.6 kB / 481.3 MB, free: 384 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4976, allocations: 4.125 kB / 481.3 MB, free: 380 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.498, allocations: 245.4 kB / 481.5 MB, free: 124 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.4983, allocations: 36.94 kB / 481.5 MB, free: 88 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.4996, allocations: 0.7346 MB / 482.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.5, allocations: 0.7912 MB / 483.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.5001, allocations: 18.08 kB / 483.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.5002, allocations: 107.4 kB / 483.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5002, allocations: 0 / 483.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0241/0.5243, allocations: 4.64 MB / 487.8 MB, free: 9.75 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002353/0.5246, allocations: 149 kB / 488 MB, free: 9.551 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.292, allocations: 3.938 kB / 488 MB, free: 9.547 MB / 362.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