Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007816/0.007816, allocations: 104.5 kB / 15.74 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 199.1 kB / 16.68 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 222.5 MB, free: 4.477 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 57.98 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08936, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00495/0.09436, allocations: 3.33 MB / 376.5 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002443/0.09684, allocations: 1.404 MB / 377.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003528/0.09722, allocations: 11.94 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003025/0.1003, allocations: 2.655 MB / 380.6 MB, free: 9.883 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005862/0.1009, allocations: 166.8 kB / 380.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000744/0.1016, allocations: 283.5 kB / 381 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002139/0.1038, allocations: 1.801 MB / 382.8 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.1041, allocations: 143.2 kB / 383 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004897/0.1046, allocations: 313 kB / 383.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000506/0.1051, allocations: 314.9 kB / 383.6 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.1053, allocations: 44 kB / 383.6 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000224/0.1055, allocations: 79.92 kB / 383.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006927/0.1062, allocations: 0.8453 MB / 384.5 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009714/0.1072, allocations: 0.9462 MB / 385.5 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002158/0.1093, allocations: 2.601 MB / 388.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1094, allocations: 0 / 388.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1094, allocations: 0 / 388.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.1094, allocations: 0 / 388.1 MB, free: 2.348 MB / 318.1 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.003542/0.1129, allocations: 2.791 MB / 390.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.113, allocations: 15.88 kB / 390.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003294/0.1133, allocations: 281.3 kB / 391.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002257/0.1156, allocations: 1.824 MB / 393 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.441e-05/0.1157, allocations: 63.27 kB / 393.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.1159, allocations: 51.83 kB / 393.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006945/0.1166, allocations: 391 kB / 393.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.1166, allocations: 0 / 393.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.75e-05/0.1166, allocations: 16 kB / 393.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1167, allocations: 8 kB / 393.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007019/0.1174, allocations: 331.8 kB / 393.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003869/0.1212, allocations: 2.895 MB / 396.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006064/0.1219, allocations: 317 kB / 397 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.1222, allocations: 169.6 kB / 397.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.365e-05/0.1222, allocations: 8 kB / 397.2 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.1223, allocations: 38.5 kB / 397.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.024e-06/0.1223, allocations: 4 kB / 397.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.004565/0.1268, allocations: 2.363 MB / 399.6 MB, free: 6.465 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.1269, allocations: 85.58 kB / 399.7 MB, free: 6.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00616/0.1331, allocations: 5.435 MB / 405.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.161e-05/0.1332, allocations: 37.7 kB / 405.2 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.1343, allocations: 1.203 MB / 406.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.1344, allocations: 165.6 kB / 406.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.1346, allocations: 90.16 kB / 406.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1347, allocations: 326 kB / 406.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.1351, allocations: 141.1 kB / 407.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/0.1354, allocations: 217.7 kB / 407.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006556/0.1361, allocations: 384.3 kB / 407.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1361, allocations: 8 kB / 407.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001119/0.1372, allocations: 0.6762 MB / 408.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.1373, allocations: 8 kB / 408.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1373, allocations: 0 / 408.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1373, allocations: 4.25 kB / 408.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004925/0.1378, allocations: 131.8 kB / 408.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.1378, allocations: 8 kB / 408.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003931/0.1382, allocations: 23.72 kB / 408.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.1383, allocations: 23.98 kB / 408.5 MB, free: 13.42 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009382/0.1392, allocations: 0.9192 MB / 409.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.1395, allocations: 264.5 kB / 409.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000375/0.1399, allocations: 336.2 kB / 410 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1399, allocations: 12 kB / 410.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1399, allocations: 0 / 410.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1399, allocations: 7.922 kB / 410.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.1415, allocations: 1.469 MB / 411.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.1415, allocations: 0 / 411.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004343/0.1419, allocations: 99.88 kB / 411.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000346/0.1423, allocations: 84.8 kB / 411.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.1423, allocations: 11.98 kB / 411.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005281/0.1429, allocations: 0.6381 MB / 412.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1429, allocations: 0 / 412.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.1444, allocations: 1.046 MB / 413.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006612/0.145, allocations: 489.5 kB / 413.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001699/0.1452, allocations: 12 kB / 413.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004512/0.1457, allocations: 19.98 kB / 413.9 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.888e-05/0.1458, allocations: 32.39 kB / 414 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.1458, allocations: 12 kB / 414 MB, free: 7.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00434/0.1501, allocations: 3.977 MB / 417.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1501, allocations: 0 / 417.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006819/0.1508, allocations: 204 kB / 418.1 MB, free: 3.684 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009348/0.1518, allocations: 412.4 kB / 418.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000789/0.1526, allocations: 380.9 kB / 418.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1526, allocations: 0 / 418.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004456/0.153, allocations: 218.3 kB / 419.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.1541, allocations: 191.7 kB / 419.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007033/0.1611, allocations: 5.404 MB / 424.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/0.1627, allocations: 1.817 MB / 426.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005401/0.1632, allocations: 271.6 kB / 426.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000255/0.1635, allocations: 99.42 kB / 426.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1635, allocations: 0 / 426.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of Templates: time 0.02923/0.1928, allocations: 15.47 MB / 442.4 MB, free: 11.34 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)