Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",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.001063/0.001066, allocations: 181.2 kB / 8.131 MB, free: 2.207 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.121/1.121, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0008982/0.0008984, allocations: 93.14 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09148/0.09241, allocations: 55.81 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.2742, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08113/0.3554, allocations: 79.92 MB / 466.9 MB, free: 6.887 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/0.3556, allocations: 74.17 kB / 467 MB, free: 6.816 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.02256/0.3781, allocations: 8.858 MB / 475.8 MB, free: 13.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3782, allocations: 9.031 kB / 475.9 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.3784, allocations: 71.47 kB / 475.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005556/0.379, allocations: 350.7 kB / 476.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.379, allocations: 19.94 kB / 476.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.553e-05/0.3791, allocations: 28 kB / 476.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005211/0.3796, allocations: 269.9 kB / 476.6 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006665/0.3803, allocations: 385.4 kB / 477 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.3803, allocations: 3.938 kB / 477 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/0.3803, allocations: 0 / 477 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.3803, allocations: 12 kB / 477 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.3829, allocations: 1.629 MB / 478.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.3832, allocations: 177.2 kB / 478.8 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.3834, allocations: 121.7 kB / 478.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.3834, allocations: 0 / 478.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.3835, allocations: 42.56 kB / 478.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.272e-06/0.3835, allocations: 0 / 478.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001287/0.3848, allocations: 0.7073 MB / 479.6 MB, free: 9.887 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.3848, allocations: 77.11 kB / 479.7 MB, free: 9.793 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.3852, allocations: 313.9 kB / 480 MB, free: 9.484 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.3852, allocations: 25.7 kB / 480 MB, free: 9.453 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.3853, allocations: 249.4 kB / 480.3 MB, free: 9.203 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.597e-05/0.3854, allocations: 106.5 kB / 480.4 MB, free: 9.098 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.365e-05/0.3854, allocations: 0 / 480.4 MB, free: 9.098 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3856, allocations: 350.7 kB / 480.7 MB, free: 8.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.3857, allocations: 84.88 kB / 480.8 MB, free: 8.664 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.3859, allocations: 166 kB / 481 MB, free: 8.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.3861, allocations: 107.8 kB / 481.1 MB, free: 8.363 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3861, allocations: 0 / 481.1 MB, free: 8.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006573/0.3868, allocations: 379.5 kB / 481.5 MB, free: 7.984 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.3868, allocations: 8 kB / 481.5 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.3868, allocations: 3.906 kB / 481.5 MB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003203/0.3871, allocations: 81.83 kB / 481.5 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.3875, allocations: 83.89 kB / 481.6 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002308/0.3898, allocations: 2.734 MB / 484.4 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.3901, allocations: 15.84 kB / 484.4 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.3901, allocations: 20.05 kB / 484.4 MB, free: 4.805 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.3902, allocations: 114.4 kB / 484.5 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.755e-05/0.3903, allocations: 39.53 kB / 484.6 MB, free: 4.648 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.563e-05/0.3904, allocations: 39.05 kB / 484.6 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3904, allocations: 7.906 kB / 484.6 MB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3904, allocations: 4 kB / 484.6 MB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.3904, allocations: 4.547 kB / 484.6 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.3916, allocations: 0.8079 MB / 485.4 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3916, allocations: 0 / 485.4 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002161/0.3918, allocations: 59.81 kB / 485.5 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002684/0.3921, allocations: 77.64 kB / 485.5 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.3921, allocations: 8 kB / 485.6 MB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/0.394, allocations: 2.731 MB / 488.3 MB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.394, allocations: 0 / 488.3 MB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006675/0.3947, allocations: 0.5678 MB / 488.9 MB, free: 28 kB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001161/0.3959, allocations: 1.213 MB / 490.1 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.273e-05/0.396, allocations: 116.6 kB / 490.2 MB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.396, allocations: 4 kB / 490.2 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000352/0.3964, allocations: 32.16 kB / 490.2 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.341e-05/0.3964, allocations: 23.97 kB / 490.2 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.3965, allocations: 15.94 kB / 490.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002092/0.3967, allocations: 232.6 kB / 490.5 MB, free: 14.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001085/0.3978, allocations: 107.9 kB / 490.6 MB, free: 14.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001481/0.3979, allocations: 100 kB / 490.7 MB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006936/0.3986, allocations: 456.6 kB / 491.1 MB, free: 13.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.3987, allocations: 4 kB / 491.1 MB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000504/0.3992, allocations: 332.1 kB / 491.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.3995, allocations: 36.17 kB / 491.5 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.4009, allocations: 0.7404 MB / 492.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000466/0.4014, allocations: 0.8884 MB / 493.1 MB, free: 11.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4014, allocations: 0 / 493.1 MB, free: 11.6 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat