Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",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.001026/0.001026, allocations: 186.9 kB / 8.139 MB, free: 2.211 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.33/1.33, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009793/0.0009793, allocations: 100.9 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09037/0.09137, allocations: 55.83 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.2727, allocations: 50.38 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09178/0.3645, allocations: 92.29 MB / 479.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.3648, allocations: 79.94 kB / 479.4 MB, free: 10.38 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.04936/0.4141, allocations: 16.36 MB / 495.7 MB, free: 9.953 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.4142, allocations: 8 kB / 495.7 MB, free: 9.945 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.4144, allocations: 83 kB / 495.8 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007975/0.4152, allocations: 0.4903 MB / 496.3 MB, free: 9.332 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.273e-05/0.4153, allocations: 51.02 kB / 496.4 MB, free: 9.277 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002516/0.4156, allocations: 39.98 kB / 496.4 MB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00088/0.4164, allocations: 447.5 kB / 496.8 MB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008825/0.4173, allocations: 0.4979 MB / 497.3 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.4174, allocations: 0 / 497.3 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.172e-05/0.4174, allocations: 4 kB / 497.3 MB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.735e-05/0.4175, allocations: 15.91 kB / 497.3 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003706/0.4212, allocations: 2.222 MB / 499.6 MB, free: 5.945 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.4217, allocations: 280.9 kB / 499.8 MB, free: 5.648 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.4221, allocations: 237.7 kB / 0.4884 GB, free: 5.414 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.4222, allocations: 4 kB / 0.4884 GB, free: 5.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.4222, allocations: 38.56 kB / 0.4884 GB, free: 5.363 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.4222, allocations: 3.938 kB / 0.4884 GB, free: 5.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.009638/0.4319, allocations: 2.54 MB / 0.4909 GB, free: 2.766 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.4319, allocations: 85.61 kB / 0.491 GB, free: 2.664 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005893/0.4325, allocations: 441.1 kB / 0.4914 GB, free: 2.227 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.047e-05/0.4326, allocations: 25.7 kB / 0.4914 GB, free: 2.195 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.4327, allocations: 252.2 kB / 0.4916 GB, free: 1.945 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.4329, allocations: 201 kB / 0.4918 GB, free: 1.746 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.4329, allocations: 0 / 0.4918 GB, free: 1.746 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.433, allocations: 366.7 kB / 0.4922 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003797/0.4334, allocations: 213.3 kB / 0.4924 GB, free: 1.172 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.4339, allocations: 298.6 kB / 0.4927 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004342/0.4344, allocations: 251.1 kB / 0.4929 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4344, allocations: 0 / 0.4929 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.1036/0.538, allocations: 1.738 MB / 0.4946 GB, free: 133.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.538, allocations: 7.031 kB / 0.4946 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.538, allocations: 3.5 kB / 0.4946 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006659/0.5447, allocations: 1.171 MB / 0.4958 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.5452, allocations: 99.27 kB / 0.4959 GB, free: 133.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/0.557, allocations: 5.511 MB / 0.5012 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007113/0.5578, allocations: 37.78 kB / 0.5013 GB, free: 132 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/0.5578, allocations: 23.12 kB / 0.5013 GB, free: 132 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 0 * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.558, allocations: 117.7 kB / 0.5014 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.5582, allocations: 64.77 kB / 0.5015 GB, free: 131.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.5594, allocations: 0.7029 MB / 0.5022 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.5594, allocations: 10.84 kB / 0.5022 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.5594, allocations: 0 / 0.5022 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.5594, allocations: 7.766 kB / 0.5022 GB, free: 131.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/0.5625, allocations: 1.701 MB / 0.5038 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.5626, allocations: 3.594 kB / 0.5038 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005649/0.5631, allocations: 114.8 kB / 0.504 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.5648, allocations: 344.9 kB / 0.5043 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.5649, allocations: 3.25 kB / 0.5043 GB, free: 131.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003668/0.5686, allocations: 2.65 MB / 0.5069 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.5686, allocations: 0.7188 kB / 0.5069 GB, free: 130.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002077/0.5707, allocations: 1.238 MB / 0.5081 GB, free: 129.9 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00248/0.5732, allocations: 1.924 MB / 0.51 GB, free: 129.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.5734, allocations: 207.3 kB / 0.5102 GB, free: 129.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.5736, allocations: 3.969 kB / 0.5102 GB, free: 129.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000707/0.5743, allocations: 42.62 kB / 0.5102 GB, free: 129.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.867e-05/0.5744, allocations: 37.36 kB / 0.5102 GB, free: 129.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.5e-05/0.5744, allocations: 18.56 kB / 0.5103 GB, free: 129.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003633/0.5748, allocations: 336.9 kB / 0.5106 GB, free: 129 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001453/0.5763, allocations: 195 kB / 0.5108 GB, free: 129 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002684/0.5765, allocations: 160.9 kB / 0.5109 GB, free: 128.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.5778, allocations: 0.6944 MB / 0.5116 GB, free: 128.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.5778, allocations: 0 / 0.5116 GB, free: 128.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006433/0.5785, allocations: 441.6 kB / 0.512 GB, free: 128.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.5789, allocations: 55.69 kB / 0.5121 GB, free: 128.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.5814, allocations: 1.099 MB / 0.5131 GB, free: 128.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005258/0.5819, allocations: 0.9715 MB / 0.5141 GB, free: 127.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5819, allocations: 0 / 0.5141 GB, free: 127.6 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat