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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 185.9 kB / 8.133 MB, free: 2.16 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.104/1.104, allocations: 221.4 MB / 229.9 MB, free: 3.047 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.0008677/0.0008677, allocations: 101.5 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08997/0.09087, allocations: 55.81 MB / 336.6 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.2586, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07413/0.3327, allocations: 77.51 MB / 464.5 MB, free: 9.293 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001761/0.3329, allocations: 63.97 kB / 464.6 MB, free: 9.23 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.01531/0.3482, allocations: 6.125 MB / 470.7 MB, free: 3.094 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.3483, allocations: 8 kB / 470.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.2e-05/0.3484, allocations: 48.06 kB / 470.7 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.3487, allocations: 272.2 kB / 471 MB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.3487, allocations: 12 kB / 471 MB, free: 2.719 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.288e-05/0.3488, allocations: 24 kB / 471.1 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004397/0.3492, allocations: 245.9 kB / 471.3 MB, free: 2.453 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005299/0.3497, allocations: 365.4 kB / 471.6 MB, free: 2.066 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.3498, allocations: 4.875 kB / 471.7 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.3498, allocations: 0 / 471.7 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.3498, allocations: 8 kB / 471.7 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.3515, allocations: 1.243 MB / 472.9 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002504/0.3518, allocations: 137.9 kB / 473 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.3521, allocations: 189.6 kB / 473.2 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.3522, allocations: 3.984 kB / 473.2 MB, free: 408 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.3522, allocations: 43.06 kB / 473.3 MB, free: 356 kB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.352e-06/0.3522, allocations: 0 / 473.3 MB, free: 356 kB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005333/0.3527, allocations: 246.7 kB / 473.5 MB, free: 100 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.3529, allocations: 239.3 kB / 473.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.353, allocations: 157.8 kB / 473.9 MB, free: 15.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.353, allocations: 25.7 kB / 473.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/0.3531, allocations: 192.1 kB / 474.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.104e-05/0.3532, allocations: 98.55 kB / 474.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.3532, allocations: 9.969 kB / 474.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3533, allocations: 330.7 kB / 474.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.3534, allocations: 63.98 kB / 474.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.3536, allocations: 140.8 kB / 474.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.3538, allocations: 84.45 kB / 474.8 MB, free: 14.67 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3538, allocations: 0 / 474.8 MB, free: 14.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003597/0.3541, allocations: 233.2 kB / 475 MB, free: 14.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.3541, allocations: 4 kB / 475.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3542, allocations: 3.906 kB / 475.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.3542, allocations: 6.375 kB / 475.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003544/0.3545, allocations: 83.95 kB / 475.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.3546, allocations: 0 / 475.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.3547, allocations: 15.84 kB / 475.2 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.3547, allocations: 15.91 kB / 475.2 MB, free: 14.31 MB / 362.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.302e-05/0.3548, allocations: 112.9 kB / 475.3 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.976e-05/0.3549, allocations: 27.73 kB / 475.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.016e-05/0.355, allocations: 34.55 kB / 475.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.355, allocations: 4 kB / 475.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.355, allocations: 4 kB / 475.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.355, allocations: 3.984 kB / 475.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009168/0.3559, allocations: 0.6808 MB / 476 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3559, allocations: 0 / 476 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.3562, allocations: 51.91 kB / 476.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002986/0.3565, allocations: 88.83 kB / 476.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.3566, allocations: 8 kB / 476.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001658/0.3582, allocations: 1.689 MB / 477.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.3582, allocations: 5.438 kB / 477.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006235/0.3589, allocations: 483.3 kB / 478.4 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008301/0.3597, allocations: 0.919 MB / 479.3 MB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.429e-05/0.3598, allocations: 112.7 kB / 479.4 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.3598, allocations: 4 kB / 479.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.36, allocations: 4 kB / 479.4 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.36, allocations: 11.97 kB / 479.4 MB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.3601, allocations: 12 kB / 479.4 MB, free: 9.832 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.288e-05/0.3601, allocations: 120.3 kB / 479.5 MB, free: 9.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008913/0.361, allocations: 95.59 kB / 479.6 MB, free: 9.621 MB / 362.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.0001264/0.3612, allocations: 107.2 kB / 479.7 MB, free: 9.504 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002973/0.3615, allocations: 180.4 kB / 479.9 MB, free: 9.328 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3615, allocations: 0 / 479.9 MB, free: 9.328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003258/0.3618, allocations: 225.7 kB / 480.1 MB, free: 9.098 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.3621, allocations: 30.88 kB / 480.2 MB, free: 9.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.3631, allocations: 0.6734 MB / 480.8 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.3635, allocations: 0.8254 MB / 481.7 MB, free: 7.531 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3635, allocations: 0 / 481.7 MB, free: 7.531 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