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.005695/0.005695, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001141/0.001141, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.347/1.347, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.001161/0.001161, allocations: 47.94 kB / 326.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09198/0.09315, allocations: 46.61 MB / 373.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00456/0.09775, allocations: 3.337 MB / 376.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.204/0.3018, allocations: 1.399 MB / 377.9 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000497/0.3023, allocations: 6.125 kB / 377.9 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003756/0.3061, allocations: 2.653 MB / 380.6 MB, free: 9.637 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.000666/0.3068, allocations: 174.9 kB / 380.7 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007834/0.3076, allocations: 281.7 kB / 381 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002458/0.3101, allocations: 1.802 MB / 382.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002743/0.3104, allocations: 135.1 kB / 382.9 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004751/0.3109, allocations: 314.4 kB / 383.2 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003653/0.3112, allocations: 325.3 kB / 383.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.878e-05/0.3113, allocations: 44.06 kB / 383.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.3115, allocations: 69.48 kB / 383.7 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007475/0.3123, allocations: 0.8484 MB / 384.5 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006436/0.3129, allocations: 0.9395 MB / 385.5 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00266/0.3156, allocations: 2.606 MB / 388.1 MB, free: 8.172 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3156, allocations: 3.938 kB / 388.1 MB, free: 8.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3156, allocations: 0 / 388.1 MB, free: 8.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.602e-05/0.3157, allocations: 1.469 kB / 388.1 MB, free: 8.168 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.004066/0.3197, allocations: 2.796 MB / 390.9 MB, free: 6.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3198, allocations: 12.52 kB / 390.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003995/0.3202, allocations: 280 kB / 391.1 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002435/0.3226, allocations: 1.821 MB / 393 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.755e-05/0.3227, allocations: 65.34 kB / 393 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.3229, allocations: 53.38 kB / 393.1 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006929/0.3236, allocations: 390.2 kB / 393.5 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.3236, allocations: 0 / 393.5 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.3237, allocations: 16.97 kB / 393.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.3237, allocations: 8.25 kB / 393.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006475/0.3243, allocations: 336.6 kB / 393.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003843/0.3282, allocations: 2.89 MB / 396.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006038/0.3288, allocations: 323.8 kB / 397 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.3291, allocations: 162.4 kB / 397.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.763e-05/0.3292, allocations: 3.875 kB / 397.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.3292, allocations: 37.34 kB / 397.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/0.3292, allocations: 0 / 397.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=48): time 0.004568/0.3338, allocations: 2.365 MB / 399.6 MB, free: 0.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/0.3338, allocations: 82.95 kB / 399.7 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006909/0.3408, allocations: 5.441 MB / 405.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.196e-05/0.3409, allocations: 32.45 kB / 405.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.342, allocations: 1.213 MB / 406.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/0.3422, allocations: 163.8 kB / 406.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.3423, allocations: 94.16 kB / 406.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3424, allocations: 329.9 kB / 406.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.3428, allocations: 137.1 kB / 407.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003791/0.3432, allocations: 229.6 kB / 407.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007193/0.3439, allocations: 385.9 kB / 407.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3439, allocations: 4 kB / 407.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001515/0.3455, allocations: 0.6762 MB / 408.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.3455, allocations: 8.938 kB / 408.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3455, allocations: 3.984 kB / 408.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.3455, allocations: 4 kB / 408.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005214/0.3461, allocations: 124.1 kB / 408.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3461, allocations: 4 kB / 408.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005424/0.3466, allocations: 19.91 kB / 408.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.3467, allocations: 23.92 kB / 408.5 MB, free: 11.1 MB / 334.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.001348/0.348, allocations: 0.9192 MB / 409.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003493/0.3484, allocations: 268.5 kB / 409.7 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004578/0.3489, allocations: 336.2 kB / 410 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.3489, allocations: 11.98 kB / 410.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.3489, allocations: 4 kB / 410.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.3489, allocations: 0 / 410.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.3508, allocations: 1.467 MB / 411.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3508, allocations: 0 / 411.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004427/0.3512, allocations: 95.88 kB / 411.6 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003651/0.3516, allocations: 84.8 kB / 411.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.545e-05/0.3517, allocations: 15.98 kB / 411.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005626/0.3522, allocations: 0.635 MB / 412.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3522, allocations: 3.938 kB / 412.4 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.3538, allocations: 1.038 MB / 413.4 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007332/0.3546, allocations: 489.6 kB / 413.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.3548, allocations: 19.88 kB / 413.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004805/0.3553, allocations: 15.98 kB / 413.9 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.68e-05/0.3554, allocations: 32.39 kB / 413.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.3554, allocations: 16 kB / 414 MB, free: 5.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.005156/0.3606, allocations: 3.97 MB / 417.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.42e-07/0.3606, allocations: 4 kB / 417.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001092/0.3617, allocations: 204 kB / 418.1 MB, free: 1.387 MB / 334.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.001083/0.3628, allocations: 429.4 kB / 418.5 MB, free: 1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008599/0.3636, allocations: 384.8 kB / 418.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3637, allocations: 0 / 418.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000444/0.3641, allocations: 214.3 kB / 419.1 MB, free: 428 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.3653, allocations: 191.8 kB / 419.3 MB, free: 232 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008158/0.3734, allocations: 5.406 MB / 424.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001883/0.3753, allocations: 1.817 MB / 426.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007137/0.3761, allocations: 271.5 kB / 426.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.3764, allocations: 91.42 kB / 426.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3764, allocations: 4 kB / 426.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of Templates: time 0.03164/0.4081, allocations: 15.47 MB / 442.4 MB, free: 9.086 MB / 366.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)