Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") [: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.002398/0.002398, allocations: 180.8 kB / 8.151 MB, free: 2.184 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.715/1.715, allocations: 205.2 MB / 213.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001345/0.001344, allocations: 91.72 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.628e-06/9.948e-06, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2841, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2104/0.4946, allocations: 89.26 MB / 451.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/0.495, allocations: 86.02 kB / 451.2 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07456/0.5696, allocations: 15.09 MB / 466.3 MB, free: 13.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.836e-05/0.5697, allocations: 12 kB / 466.3 MB, free: 13.59 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.002753/0.5725, allocations: 0.8653 MB / 467.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.5725, allocations: 15.97 kB / 467.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003169/0.5729, allocations: 79.06 kB / 467.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.5742, allocations: 0.4902 MB / 467.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.5743, allocations: 56.78 kB / 467.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003301/0.5746, allocations: 44 kB / 467.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001557/0.5762, allocations: 450.5 kB / 468.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.5777, allocations: 0.4901 MB / 468.8 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/0.5777, allocations: 0 / 468.8 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.712e-05/0.5778, allocations: 0 / 468.8 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/0.5779, allocations: 19.91 kB / 468.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006079/0.5839, allocations: 2.212 MB / 471 MB, free: 8.672 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008371/0.5848, allocations: 296.9 kB / 471.3 MB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006638/0.5855, allocations: 227.8 kB / 471.5 MB, free: 8.137 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.849e-05/0.5856, allocations: 8 kB / 471.5 MB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.5856, allocations: 34.56 kB / 471.5 MB, free: 8.086 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 4.979e-06/0.5856, allocations: 3.984 kB / 471.6 MB, free: 8.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.01701/0.6027, allocations: 2.545 MB / 474.1 MB, free: 5.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.543e-05/0.6028, allocations: 81.61 kB / 474.2 MB, free: 5.383 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009866/0.6038, allocations: 429.2 kB / 474.6 MB, free: 4.957 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.6039, allocations: 25.7 kB / 474.6 MB, free: 4.926 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.6041, allocations: 298.6 kB / 474.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.6044, allocations: 204.9 kB / 475.1 MB, free: 4.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.715e-05/0.6045, allocations: 0.6562 kB / 475.1 MB, free: 4.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6047, allocations: 342.7 kB / 475.4 MB, free: 4.086 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007264/0.6054, allocations: 209.3 kB / 475.7 MB, free: 3.879 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000776/0.6062, allocations: 298.5 kB / 475.9 MB, free: 3.559 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007818/0.607, allocations: 243.1 kB / 476.2 MB, free: 3.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.607, allocations: 8 kB / 476.2 MB, free: 3.312 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01436/0.6214, allocations: 1.711 MB / 477.9 MB, free: 1.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.6215, allocations: 4 kB / 477.9 MB, free: 1.586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.6215, allocations: 4 kB / 477.9 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01165/0.6331, allocations: 1.047 MB / 479 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008841/0.6341, allocations: 95.83 kB / 479 MB, free: 448 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02401/0.6581, allocations: 5.589 MB / 484.6 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000932/0.6591, allocations: 39.03 kB / 484.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-05/0.6592, allocations: 27.92 kB / 484.7 MB, free: 10.65 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_n.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.0002756/0.6595, allocations: 49.28 kB / 484.8 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002773/0.6598, allocations: 59.25 kB / 484.8 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002496/0.6623, allocations: 0.7056 MB / 485.5 MB, free: 9.828 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.6624, allocations: 8 kB / 485.5 MB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.6624, allocations: 0 / 485.5 MB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.201e-05/0.6624, allocations: 11.88 kB / 485.5 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006298/0.6687, allocations: 1.709 MB / 487.2 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.6688, allocations: 0 / 487.2 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.67, allocations: 111.9 kB / 487.4 MB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003169/0.6732, allocations: 332.6 kB / 487.7 MB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/0.6734, allocations: 7.984 kB / 487.7 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007652/0.681, allocations: 2.646 MB / 490.3 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.6811, allocations: 4 kB / 490.3 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004392/0.6855, allocations: 1.234 MB / 491.6 MB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005894/0.6861, allocations: 204.4 kB / 491.8 MB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.6863, allocations: 0 / 491.8 MB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.6875, allocations: 47.88 kB / 491.8 MB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.6877, allocations: 32.59 kB / 491.8 MB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.365e-05/0.6878, allocations: 20 kB / 491.9 MB, free: 3.266 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007116/0.6885, allocations: 335.2 kB / 492.2 MB, free: 2.938 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00129/0.6898, allocations: 192.2 kB / 492.4 MB, free: 2.75 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.0004517/0.6903, allocations: 139.1 kB / 492.5 MB, free: 2.602 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00222/0.6925, allocations: 0.6846 MB / 493.2 MB, free: 1.906 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.6926, allocations: 0 / 493.2 MB, free: 1.906 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.6939, allocations: 440.6 kB / 493.6 MB, free: 1.469 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008632/0.6948, allocations: 51.72 kB / 493.7 MB, free: 1.422 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004606/0.6994, allocations: 1.138 MB / 494.8 MB, free: 252 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/0.7006, allocations: 0.9766 MB / 495.8 MB, free: 15.24 MB / 394.7 MB Notification: Performance of SimCode: time 1.523e-06/0.7006, allocations: 0 / 495.8 MB, free: 15.24 MB / 394.7 MB Notification: Performance of Templates: time 0.02572/0.7264, allocations: 11.34 MB / 0.4953 GB, free: 3.918 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches