Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009574/0.0009571, allocations: 183.7 kB / 8.478 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.036/1.036, allocations: 205.2 MB / 214.1 MB, free: 1.883 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000857/0.0008568, allocations: 83.39 kB / 262.1 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1276/0.1284, allocations: 52.98 MB / 315.1 MB, free: 22.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06216/0.1906, allocations: 47.58 MB / 362.6 MB, free: 7.332 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1994/0.3901, allocations: 89.54 MB / 452.2 MB, free: 6.023 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.3903, allocations: 79.61 kB / 452.3 MB, free: 5.984 MB / 330.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.04365/0.434, allocations: 15.99 MB / 468.2 MB, free: 8.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.434, allocations: 8 kB / 468.3 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.4342, allocations: 79.06 kB / 468.3 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006475/0.4348, allocations: 0.495 MB / 468.8 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-05/0.4349, allocations: 51.02 kB / 468.9 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.4351, allocations: 43.98 kB / 468.9 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007328/0.4358, allocations: 448.3 kB / 469.4 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007814/0.4366, allocations: 0.4949 MB / 469.9 MB, free: 7.516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.4367, allocations: 0 / 469.9 MB, free: 7.516 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.957e-05/0.4367, allocations: 0 / 469.9 MB, free: 7.516 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.4367, allocations: 19.84 kB / 469.9 MB, free: 7.496 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002946/0.4397, allocations: 2.217 MB / 472.1 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.4401, allocations: 288.5 kB / 472.4 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003319/0.4405, allocations: 224.5 kB / 472.6 MB, free: 5.387 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.4405, allocations: 8.219 kB / 472.6 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.4405, allocations: 42.42 kB / 472.6 MB, free: 5.332 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.753e-06/0.4405, allocations: 0 / 472.6 MB, free: 5.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.008673/0.4492, allocations: 2.551 MB / 475.2 MB, free: 3.215 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.4493, allocations: 81.61 kB / 475.3 MB, free: 3.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.4498, allocations: 433.4 kB / 475.7 MB, free: 2.809 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.586e-05/0.4498, allocations: 29.64 kB / 475.7 MB, free: 2.773 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.4499, allocations: 257.6 kB / 476 MB, free: 2.543 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.4501, allocations: 202.6 kB / 476.2 MB, free: 2.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.4501, allocations: 0 / 476.2 MB, free: 2.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.4502, allocations: 365.3 kB / 476.5 MB, free: 2.023 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.4506, allocations: 209.8 kB / 476.7 MB, free: 1.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003626/0.4509, allocations: 302 kB / 477 MB, free: 1.695 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.4513, allocations: 244.1 kB / 477.3 MB, free: 1.559 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.4513, allocations: 4 kB / 477.3 MB, free: 1.555 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.007086/0.4584, allocations: 1.751 MB / 479 MB, free: 96 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.4584, allocations: 4 kB / 479 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4584, allocations: 4 kB / 479 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006461/0.4649, allocations: 1.16 MB / 480.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000433/0.4654, allocations: 95.27 kB / 480.3 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/0.4775, allocations: 5.527 MB / 485.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006401/0.4781, allocations: 32.05 kB / 485.8 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.291e-05/0.4782, allocations: 23.98 kB / 485.9 MB, free: 10.11 MB / 362.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.0001771/0.4784, allocations: 116.9 kB / 486 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.4785, allocations: 55.34 kB / 486 MB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.4798, allocations: 0.721 MB / 486.8 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.4799, allocations: 7.984 kB / 486.8 MB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.4799, allocations: 4 kB / 486.8 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.4799, allocations: 3.984 kB / 486.8 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/0.4831, allocations: 1.705 MB / 488.5 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.4832, allocations: 0 / 488.5 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005877/0.4838, allocations: 123.9 kB / 488.6 MB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/0.4855, allocations: 336.4 kB / 488.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.587e-05/0.4855, allocations: 0 / 488.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004006/0.4896, allocations: 2.642 MB / 491.6 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.4896, allocations: 7.922 kB / 491.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002215/0.4918, allocations: 1.234 MB / 492.8 MB, free: 2.953 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002727/0.4945, allocations: 1.93 MB / 494.7 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000284/0.4948, allocations: 200.3 kB / 494.9 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.495, allocations: 8 kB / 494.9 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000641/0.4956, allocations: 39.97 kB / 495 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.776e-05/0.4957, allocations: 40.59 kB / 495 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.496e-05/0.4958, allocations: 16 kB / 495 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003869/0.4962, allocations: 335.2 kB / 495.4 MB, free: 360 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.001437/0.4976, allocations: 196.2 kB / 495.6 MB, free: 164 kB / 362.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.0002914/0.4979, allocations: 155.2 kB / 495.7 MB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.4991, allocations: 0.696 MB / 496.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4991, allocations: 0 / 496.4 MB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006154/0.4997, allocations: 436.1 kB / 496.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.5001, allocations: 70.14 kB / 496.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.5025, allocations: 1.097 MB / 498 MB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005601/0.5031, allocations: 0.965 MB / 499 MB, free: 12.67 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.5031, allocations: 0 / 499 MB, free: 12.67 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat