Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.001546, allocations: 104.5 kB / 18.35 MB, free: 4.645 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.001794/0.001794, allocations: 191 kB / 19.29 MB, free: 3.715 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.418/1.418, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001149/0.001149, allocations: 52.39 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08181/0.08297, allocations: 46.63 MB / 328.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004033/0.08704, allocations: 2.761 MB / 331.5 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.08897, allocations: 1.274 MB / 332.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.08913, allocations: 7.938 kB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002578/0.0894, allocations: 71.44 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004957/0.0899, allocations: 222.7 kB / 333.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002308/0.09014, allocations: 127.7 kB / 333.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004042/0.09056, allocations: 455 kB / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.09072, allocations: 88.64 kB / 333.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.09094, allocations: 187.4 kB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000269/0.09121, allocations: 223.1 kB / 334.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.535e-05/0.09128, allocations: 40 kB / 334.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002802/0.09156, allocations: 159.9 kB / 334.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.211e-05/0.09166, allocations: 95.7 kB / 334.4 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.09183, allocations: 179.2 kB / 334.6 MB, free: 13.85 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.09235, allocations: 0.5023 MB / 335.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.09236, allocations: 0 / 335.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09237, allocations: 0 / 335.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.09238, allocations: 0 / 335.1 MB, free: 13.35 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001576/0.09396, allocations: 0.7054 MB / 335.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.09401, allocations: 8.031 kB / 335.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.406e-05/0.0941, allocations: 40.55 kB / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004358/0.09454, allocations: 333 kB / 336.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.822e-05/0.09463, allocations: 54.81 kB / 336.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.09478, allocations: 40.5 kB / 336.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005789/0.09537, allocations: 316.5 kB / 336.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.0954, allocations: 7.938 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.09543, allocations: 8 kB / 336.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.09545, allocations: 8 kB / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006498/0.0961, allocations: 302 kB / 336.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.09773, allocations: 1.164 MB / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.09831, allocations: 289 kB / 338.3 MB, free: 9.898 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003104/0.09864, allocations: 165.6 kB / 338.5 MB, free: 9.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.09867, allocations: 3.984 kB / 338.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.09871, allocations: 42.5 kB / 338.5 MB, free: 9.676 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.362e-06/0.09871, allocations: 0 / 338.5 MB, free: 9.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.009135/0.1079, allocations: 2.409 MB / 340.9 MB, free: 7.191 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.1079, allocations: 85.11 kB / 341 MB, free: 7.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003356/0.1083, allocations: 296.9 kB / 341.3 MB, free: 6.785 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.1083, allocations: 33.7 kB / 341.4 MB, free: 6.746 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1084, allocations: 160.5 kB / 341.5 MB, free: 6.586 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.1085, allocations: 149.8 kB / 341.7 MB, free: 6.438 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.1087, allocations: 86.02 kB / 341.7 MB, free: 6.348 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1088, allocations: 334.8 kB / 342.1 MB, free: 6.012 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/0.1092, allocations: 164.8 kB / 342.2 MB, free: 5.852 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.1096, allocations: 230.6 kB / 342.5 MB, free: 5.609 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007992/0.1104, allocations: 411.5 kB / 342.9 MB, free: 5.188 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1104, allocations: 4 kB / 342.9 MB, free: 5.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009948/0.1115, allocations: 484.5 kB / 343.3 MB, free: 4.703 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1115, allocations: 8 kB / 343.3 MB, free: 4.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1115, allocations: 0 / 343.3 MB, free: 4.695 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.1115, allocations: 4 kB / 343.3 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005846/0.1121, allocations: 120 kB / 343.5 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1121, allocations: 4 kB / 343.5 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003789/0.1125, allocations: 35.91 kB / 343.5 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.679e-05/0.1126, allocations: 16 kB / 343.5 MB, free: 4.52 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0001571/0.1127, allocations: 165.6 kB / 343.7 MB, free: 4.348 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.592e-05/0.1128, allocations: 27.62 kB / 343.7 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.1146, allocations: 0.6486 MB / 344.4 MB, free: 3.656 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1146, allocations: 8 kB / 344.4 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.1146, allocations: 0 / 344.4 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1146, allocations: 0 / 344.4 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00303/0.1177, allocations: 1.279 MB / 345.6 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1177, allocations: 4 kB / 345.6 MB, free: 2.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/0.1181, allocations: 87.88 kB / 345.7 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001579/0.1197, allocations: 264.6 kB / 346 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.243e-05/0.1198, allocations: 15.98 kB / 346 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003736/0.1235, allocations: 2.439 MB / 348.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1235, allocations: 4.062 kB / 348.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.1257, allocations: 1.011 MB / 349.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.1258, allocations: 152.6 kB / 349.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.65e-05/0.1259, allocations: 8 kB / 349.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004385/0.1264, allocations: 35.97 kB / 349.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.1265, allocations: 40.39 kB / 349.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.1265, allocations: 11.98 kB / 349.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001956/0.1267, allocations: 212.5 kB / 349.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1267, allocations: 0 / 349.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005079/0.1272, allocations: 120 kB / 350 MB, free: 13.74 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002501/0.1275, allocations: 139.2 kB / 350.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008898/0.1284, allocations: 438.2 kB / 350.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1284, allocations: 4 kB / 350.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006437/0.1291, allocations: 388.8 kB / 351 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004645/0.1295, allocations: 36.73 kB / 351 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.1311, allocations: 0.9632 MB / 352 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.1314, allocations: 0.7891 MB / 352.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.1316, allocations: 42.97 kB / 352.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.1317, allocations: 39.41 kB / 352.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1318, allocations: 0 / 352.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Templates: time 0.01009/0.1418, allocations: 6.336 MB / 359.2 MB, free: 4.504 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1)