Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002241/0.002241, allocations: 187.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.019/2.019, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001146, allocations: 90.12 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003984/0.0003984, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3331, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1237/0.4569, allocations: 76.96 MB / 451.6 MB, free: 3.688 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.4573, allocations: 71.95 kB / 451.7 MB, free: 3.617 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02406/0.4814, allocations: 5.395 MB / 457.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4814, allocations: 0 / 457.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.4815, allocations: 8 kB / 457.1 MB, free: 14.21 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.001434/0.4829, allocations: 0.6201 MB / 457.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.483, allocations: 8.031 kB / 457.7 MB, free: 13.53 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.4831, allocations: 74.53 kB / 457.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.4832, allocations: 47.44 kB / 457.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004458/0.4837, allocations: 283 kB / 458.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.4838, allocations: 33 kB / 458.1 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.4839, allocations: 47.98 kB / 458.2 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.485, allocations: 443.2 kB / 458.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.485, allocations: 0 / 458.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.487e-05/0.4851, allocations: 23.98 kB / 458.6 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.4851, allocations: 12 kB / 458.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008483/0.486, allocations: 279.9 kB / 458.9 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003004/0.489, allocations: 1.326 MB / 460.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006914/0.4898, allocations: 242.9 kB / 460.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.663e-05/0.4898, allocations: 4 kB / 460.5 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/0.4899, allocations: 42.56 kB / 460.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.036e-06/0.4899, allocations: 0 / 460.5 MB, free: 10.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.002394/0.4923, allocations: 0.5592 MB / 461.1 MB, free: 9.926 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.4925, allocations: 235.3 kB / 461.3 MB, free: 9.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.4927, allocations: 193.9 kB / 461.5 MB, free: 9.445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-05/0.4928, allocations: 29.7 kB / 461.5 MB, free: 9.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.493, allocations: 258.4 kB / 461.8 MB, free: 9.156 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.4931, allocations: 98.55 kB / 461.9 MB, free: 9.059 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.662e-05/0.4931, allocations: 8 kB / 461.9 MB, free: 9.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.4933, allocations: 322.8 kB / 462.2 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.4936, allocations: 79.95 kB / 462.3 MB, free: 8.648 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.494, allocations: 158.5 kB / 462.4 MB, free: 8.469 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.4944, allocations: 103.9 kB / 462.5 MB, free: 8.367 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.4944, allocations: 11.94 kB / 462.5 MB, free: 8.355 MB / 346.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008441/0.4952, allocations: 269 kB / 462.8 MB, free: 8.086 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.4953, allocations: 8 kB / 462.8 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.4953, allocations: 3.953 kB / 462.8 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.4953, allocations: 3.938 kB / 462.8 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006571/0.496, allocations: 83.89 kB / 462.9 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.496, allocations: 4 kB / 462.9 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003222/0.4964, allocations: 31.72 kB / 462.9 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.391e-05/0.4964, allocations: 15.98 kB / 463 MB, free: 7.938 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real 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.0003717/0.4968, allocations: 151.9 kB / 463.1 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.418e-05/0.4969, allocations: 23.72 kB / 463.1 MB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.898e-05/0.497, allocations: 34.64 kB / 463.2 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.497, allocations: 7.953 kB / 463.2 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.497, allocations: 0 / 463.2 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.896e-06/0.4971, allocations: 7.984 kB / 463.2 MB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007018/0.4978, allocations: 393.3 kB / 463.6 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4978, allocations: 0 / 463.6 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005273/0.4983, allocations: 51.95 kB / 463.6 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005583/0.4989, allocations: 92.73 kB / 463.7 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.305e-05/0.4989, allocations: 8 kB / 463.7 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003047/0.502, allocations: 1.867 MB / 465.6 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.5021, allocations: 8.047 kB / 465.6 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.5035, allocations: 0.5124 MB / 466.1 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.5037, allocations: 108.8 kB / 466.2 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.384e-05/0.5037, allocations: 7.953 kB / 466.2 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000294/0.504, allocations: 16 kB / 466.2 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.5042, allocations: 23.97 kB / 466.2 MB, free: 4.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.5042, allocations: 7.984 kB / 466.3 MB, free: 4.402 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001985/0.5044, allocations: 152.4 kB / 466.4 MB, free: 4.254 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5044, allocations: 0 / 466.4 MB, free: 4.254 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005433/0.505, allocations: 103.7 kB / 466.5 MB, free: 4.152 MB / 346.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.001743/0.5067, allocations: 1.057 MB / 467.6 MB, free: 3.066 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007128/0.5075, allocations: 224.7 kB / 467.8 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.5075, allocations: 0 / 467.8 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006867/0.5082, allocations: 286.5 kB / 468.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.5085, allocations: 15.94 kB / 468.1 MB, free: 2.539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004275/0.5128, allocations: 2.1 MB / 470.2 MB, free: 388 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/0.5133, allocations: 0.7948 MB / 471 MB, free: 15.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.5136, allocations: 107.4 kB / 471.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5136, allocations: 0 / 471.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.733/3.246, allocations: 5.282 MB / 476.4 MB, free: 10.17 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat