Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.002093/0.002093, allocations: 189.1 kB / 8.134 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.209/1.209, allocations: 194.2 MB / 202.8 MB, free: 8.684 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001725/0.001725, allocations: 119.6 kB / 247.7 MB, free: 6.309 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.542e-06/6.572e-06, allocations: 0 / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07357/0.07359, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2025/0.2761, allocations: 84.47 MB / 426.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.2763, allocations: 79.02 kB / 426.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.04301/0.3193, allocations: 15.1 MB / 441.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.781e-05/0.3194, allocations: 16 kB / 441.7 MB, free: 14.68 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.001943/0.3214, allocations: 0.8614 MB / 442.6 MB, free: 13.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3214, allocations: 8.031 kB / 442.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002472/0.3217, allocations: 87.05 kB / 442.7 MB, free: 13.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009067/0.3226, allocations: 0.4913 MB / 443.2 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.545e-05/0.3227, allocations: 58.92 kB / 443.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002198/0.3229, allocations: 39.98 kB / 443.3 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009368/0.3239, allocations: 448.5 kB / 443.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009224/0.3248, allocations: 498 kB / 444.2 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.3249, allocations: 6.562 kB / 444.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.724e-05/0.3249, allocations: 4 kB / 444.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/0.3249, allocations: 15.98 kB / 444.2 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003698/0.3286, allocations: 2.221 MB / 446.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004816/0.3291, allocations: 291.8 kB / 446.7 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003895/0.3295, allocations: 238.2 kB / 447 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.3296, allocations: 4 kB / 447 MB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.3296, allocations: 37.31 kB / 447 MB, free: 10.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.415e-06/0.3296, allocations: 0 / 447 MB, free: 10.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.01021/0.3399, allocations: 2.534 MB / 449.5 MB, free: 8.266 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.34, allocations: 85.61 kB / 449.6 MB, free: 8.164 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006955/0.3407, allocations: 433.2 kB / 450 MB, free: 7.859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.609e-05/0.3408, allocations: 29.7 kB / 450.1 MB, free: 7.824 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.3409, allocations: 251.3 kB / 450.3 MB, free: 7.602 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.3411, allocations: 205.2 kB / 450.5 MB, free: 7.422 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.084e-05/0.3412, allocations: 0 / 450.5 MB, free: 7.422 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3413, allocations: 368.9 kB / 450.9 MB, free: 7.074 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/0.3417, allocations: 215.8 kB / 451.1 MB, free: 6.965 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/0.3422, allocations: 301.1 kB / 451.4 MB, free: 6.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004696/0.3426, allocations: 241.1 kB / 451.6 MB, free: 6.613 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3426, allocations: 0 / 451.6 MB, free: 6.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.007762/0.3504, allocations: 1.743 MB / 453.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.3505, allocations: 4 kB / 453.4 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.3505, allocations: 8.125 kB / 453.4 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0073/0.3578, allocations: 1.169 MB / 454.5 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005582/0.3584, allocations: 91.7 kB / 454.6 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01417/0.3726, allocations: 5.522 MB / 460.1 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/0.3734, allocations: 43.16 kB / 460.2 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.3736, allocations: 22.19 kB / 460.2 MB, free: 36 kB / 330.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.0002553/0.3738, allocations: 117.5 kB / 460.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.374, allocations: 59.34 kB / 460.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001532/0.3755, allocations: 0.707 MB / 461.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.3756, allocations: 8 kB / 461.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3756, allocations: 0 / 461.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.3756, allocations: 3.984 kB / 461.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003783/0.3794, allocations: 1.711 MB / 462.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3794, allocations: 0 / 462.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006367/0.3801, allocations: 115.8 kB / 462.9 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.3819, allocations: 338.8 kB / 463.3 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.027e-05/0.382, allocations: 11.89 kB / 463.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004639/0.3867, allocations: 2.651 MB / 465.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3867, allocations: 0 / 465.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002714/0.3894, allocations: 1.23 MB / 467.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004364/0.3899, allocations: 204.3 kB / 467.4 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.39, allocations: 8 kB / 467.4 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007386/0.3908, allocations: 43.97 kB / 467.4 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.3909, allocations: 36.59 kB / 467.4 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-05/0.391, allocations: 16 kB / 467.5 MB, free: 8.926 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0004566/0.3914, allocations: 339.1 kB / 467.8 MB, free: 8.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009799/0.3924, allocations: 188 kB / 468 MB, free: 8.41 MB / 346.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.0003597/0.3928, allocations: 155.3 kB / 468.1 MB, free: 8.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.3942, allocations: 0.6879 MB / 468.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3942, allocations: 0.5625 kB / 468.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007464/0.395, allocations: 440.8 kB / 469.2 MB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005158/0.3955, allocations: 53.38 kB / 469.3 MB, free: 7.062 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.3984, allocations: 1.107 MB / 470.4 MB, free: 5.926 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007892/0.3993, allocations: 0.961 MB / 471.4 MB, free: 4.941 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3993, allocations: 0 / 471.4 MB, free: 4.941 MB / 346.7 MB Notification: Performance of Templates: time 0.02039/0.4197, allocations: 11.47 MB / 482.8 MB, free: 9.512 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1)