Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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 trunk/package.mo): time 0.0009867/0.0009866, allocations: 203.4 kB / 8.543 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.117/1.117, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008448/0.0008448, allocations: 93.86 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08972/0.09059, allocations: 56.9 MB / 343.2 MB, free: 8.586 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07836/0.169, allocations: 51.48 MB / 394.7 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.3727, allocations: 86.96 MB / 481.7 MB, free: 6.441 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001751/0.373, allocations: 83.38 kB / 481.8 MB, free: 6.398 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.07675/0.4497, allocations: 41.29 MB / 0.5108 GB, free: 1.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.4498, allocations: 8 kB / 0.5108 GB, free: 1.012 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005462/0.4503, allocations: 296.3 kB / 0.5111 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/0.4535, allocations: 1.891 MB / 0.5129 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.832e-05/0.4535, allocations: 42.48 kB / 0.513 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.4537, allocations: 41.8 kB / 0.513 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005132/0.4542, allocations: 276.4 kB / 0.5133 GB, free: 14.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.4548, allocations: 324.9 kB / 0.5136 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.4548, allocations: 0 / 0.5136 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.974e-05/0.4548, allocations: 0 / 0.5136 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.4549, allocations: 12 kB / 0.5136 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004439/0.4593, allocations: 3.004 MB / 0.5165 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.4596, allocations: 188.3 kB / 0.5167 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.4599, allocations: 141.6 kB / 0.5168 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.4599, allocations: 11.98 kB / 0.5169 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.4599, allocations: 34.56 kB / 0.5169 GB, free: 11.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 1.964e-06/0.4599, allocations: 0 / 0.5169 GB, free: 11.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.00355/0.4635, allocations: 2.053 MB / 0.5189 GB, free: 9.625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.4635, allocations: 81.55 kB / 0.519 GB, free: 9.527 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008475/0.472, allocations: 4.706 MB / 0.5236 GB, free: 4.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.454e-05/0.4721, allocations: 25.7 kB / 0.5236 GB, free: 4.789 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004019/0.4725, allocations: 495.8 kB / 0.5241 GB, free: 4.297 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.4727, allocations: 165.5 kB / 0.5242 GB, free: 4.133 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.096e-05/0.4727, allocations: 0 / 0.5242 GB, free: 4.133 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.4728, allocations: 330 kB / 0.5245 GB, free: 3.805 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/0.473, allocations: 124.9 kB / 0.5247 GB, free: 3.684 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.4733, allocations: 191.3 kB / 0.5248 GB, free: 3.469 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.4735, allocations: 156.7 kB / 0.525 GB, free: 3.316 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4735, allocations: 0 / 0.525 GB, free: 3.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002503/0.476, allocations: 1.025 MB / 0.526 GB, free: 2.285 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.4761, allocations: 4 kB / 0.526 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.4761, allocations: 0 / 0.526 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004462/0.4765, allocations: 147.5 kB / 0.5261 GB, free: 2.137 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004255/0.477, allocations: 91.89 kB / 0.5262 GB, free: 2.047 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007782/0.4778, allocations: 0.7669 MB / 0.527 GB, free: 1.254 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/0.4784, allocations: 11.98 kB / 0.527 GB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.899e-05/0.4784, allocations: 16 kB / 0.527 GB, free: 1.227 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.4786, allocations: 117 kB / 0.5271 GB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004591/0.479, allocations: 270.1 kB / 0.5274 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/0.4805, allocations: 0.7319 MB / 0.5281 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.4806, allocations: 4 kB / 0.5281 GB, free: 100 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4806, allocations: 0 / 0.5281 GB, free: 100 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.4806, allocations: 11.98 kB / 0.5281 GB, free: 88 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.4826, allocations: 1.632 MB / 0.5297 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4826, allocations: 0 / 0.5297 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004974/0.4831, allocations: 99.88 kB / 0.5298 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002543/0.4834, allocations: 88.8 kB / 0.5299 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.4835, allocations: 4 kB / 0.5299 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005822/0.484, allocations: 0.653 MB / 0.5305 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4841, allocations: 3.938 kB / 0.5305 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001458/0.4855, allocations: 1.027 MB / 0.5315 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001696/0.4872, allocations: 1.623 MB / 0.5331 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.4883, allocations: 0.6809 MB / 0.5338 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000292/0.4886, allocations: 4 kB / 0.5338 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.4892, allocations: 18.14 kB / 0.5338 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.002e-05/0.4893, allocations: 32.33 kB / 0.5338 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.4893, allocations: 8 kB / 0.5338 GB, free: 10.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00439/0.4937, allocations: 3.666 MB / 0.5374 GB, free: 6.422 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001464/0.4952, allocations: 308 kB / 0.5377 GB, free: 6.121 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006454/0.4958, allocations: 330.8 kB / 0.538 GB, free: 5.902 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006435/0.4965, allocations: 335.3 kB / 0.5383 GB, free: 5.578 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.4965, allocations: 448 / 0.5383 GB, free: 5.578 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.4968, allocations: 193.6 kB / 0.5385 GB, free: 5.391 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008056/0.4976, allocations: 161 kB / 0.5387 GB, free: 5.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006852/0.5045, allocations: 4.817 MB / 0.5434 GB, free: 364 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001872/0.5064, allocations: 2.008 MB / 0.5453 GB, free: 14.31 MB / 426.7 MB Notification: Performance of SimCode: time 3e-07/0.5064, allocations: 3.938 kB / 0.5453 GB, free: 14.31 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat