Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001214/0.001215, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.474/1.474, allocations: 205.4 MB / 223.3 MB, free: 13.17 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.0004439/0.0004439, allocations: 8 kB / 280.1 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09557, allocations: 47.58 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.007691/0.1033, allocations: 6.315 MB / 334 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005395/0.1087, allocations: 2.779 MB / 336.8 MB, free: 10.97 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007642/0.1095, allocations: 31.88 kB / 336.8 MB, free: 10.94 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008128/0.1104, allocations: 298.2 kB / 337.1 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001887/0.1123, allocations: 0.7165 MB / 337.8 MB, free: 9.926 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002052/0.1143, allocations: 1.009 MB / 338.8 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001587/0.1159, allocations: 1.054 MB / 339.9 MB, free: 7.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002384/0.1183, allocations: 1.424 MB / 341.3 MB, free: 6.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006075/0.1189, allocations: 0.498 MB / 341.8 MB, free: 5.879 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007542/0.1197, allocations: 0.6417 MB / 342.5 MB, free: 5.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.1198, allocations: 64 kB / 342.5 MB, free: 5.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008119/0.1206, allocations: 327.6 kB / 342.8 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002885/0.1209, allocations: 250.9 kB / 343.1 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002736/0.1212, allocations: 289 kB / 343.4 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001651/0.1229, allocations: 1.667 MB / 345 MB, free: 2.645 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1229, allocations: 0 / 345 MB, free: 2.645 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1229, allocations: 0 / 345 MB, free: 2.645 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.886e-05/0.1229, allocations: 0 / 345 MB, free: 2.645 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.005233/0.1282, allocations: 1.884 MB / 346.9 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1282, allocations: 8.031 kB / 346.9 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003911/0.1321, allocations: 0.6382 MB / 347.6 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.1338, allocations: 0.8244 MB / 348.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/0.134, allocations: 144.6 kB / 348.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002713/0.1343, allocations: 156 kB / 348.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002666/0.137, allocations: 1.355 MB / 350 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.933e-05/0.137, allocations: 7.844 kB / 350 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001348/0.1372, allocations: 67.98 kB / 350.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.865e-05/0.1372, allocations: 35.98 kB / 350.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00268/0.1399, allocations: 1.37 MB / 351.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008219/0.1481, allocations: 5.008 MB / 356.5 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003086/0.1512, allocations: 2.457 MB / 359 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.1514, allocations: 110.4 kB / 359.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.1527, allocations: 0.7492 MB / 359.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of pre-optimization done (n=134): time 3.016e-06/0.1528, allocations: 0 / 359.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=165): time 0.01388/0.1666, allocations: 5.535 MB / 365.4 MB, free: 13.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.986e-05/0.1667, allocations: 153.8 kB / 365.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007028/0.1675, allocations: 0.6096 MB / 366.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.774e-05/0.1676, allocations: 61.7 kB / 366.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/0.168, allocations: 0.5778 MB / 366.8 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003726/0.1684, allocations: 0.5351 MB / 367.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.653e-05/0.1684, allocations: 40 kB / 367.3 MB, free: 11.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002184/0.1687, allocations: 422.6 kB / 367.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.1698, allocations: 0.5115 MB / 368.3 MB, free: 10.53 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.1711, allocations: 0.8807 MB / 369.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.1723, allocations: 0.6299 MB / 369.8 MB, free: 8.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1723, allocations: 7.938 kB / 369.8 MB, free: 8.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.00444/0.1768, allocations: 2.059 MB / 371.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.1768, allocations: 8 kB / 371.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.1768, allocations: 8 kB / 371.9 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001994/0.1788, allocations: 0.5301 MB / 372.4 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.18, allocations: 303.5 kB / 372.7 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1727/0.3528, allocations: 8.742 MB / 381.4 MB, free: 47.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.3541, allocations: 82.5 kB / 381.5 MB, free: 47.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.3543, allocations: 71.23 kB / 381.6 MB, free: 47.08 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007935/0.3551, allocations: 349.7 kB / 381.9 MB, free: 46.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.3553, allocations: 110.2 kB / 382 MB, free: 46.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004351/0.3596, allocations: 1.91 MB / 383.9 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.3596, allocations: 15.84 kB / 384 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.3597, allocations: 8.125 kB / 384 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.117e-05/0.3597, allocations: 8.016 kB / 384 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006376/0.3661, allocations: 3.437 MB / 387.4 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.3661, allocations: 0 / 387.4 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009727/0.3671, allocations: 217.5 kB / 387.6 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002017/0.3691, allocations: 0.5075 MB / 388.1 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.3692, allocations: 36.09 kB / 388.2 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008188/0.3774, allocations: 8.485 MB / 396.7 MB, free: 38.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.3775, allocations: 3.812 kB / 396.7 MB, free: 38.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005676/0.3832, allocations: 2.647 MB / 399.3 MB, free: 37.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005405/0.3837, allocations: 297.7 kB / 399.6 MB, free: 37.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.3839, allocations: 33.62 kB / 399.6 MB, free: 37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006891/0.3846, allocations: 70.33 kB / 399.7 MB, free: 36.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003912/0.385, allocations: 128.3 kB / 399.8 MB, free: 36.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.3851, allocations: 48.8 kB / 399.9 MB, free: 36.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005993/0.3857, allocations: 418.8 kB / 400.3 MB, free: 36.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3858, allocations: 0 / 400.3 MB, free: 36.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001666/0.3874, allocations: 421.2 kB / 400.7 MB, free: 36.69 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 18,(1,100.0%) 9,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003267/0.3878, allocations: 199.1 kB / 400.9 MB, free: 36.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003353/0.3911, allocations: 2.118 MB / 403 MB, free: 35.47 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3911, allocations: 0 / 403 MB, free: 35.47 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001802/0.393, allocations: 1.42 MB / 404.4 MB, free: 34.64 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000498/0.3935, allocations: 92.84 kB / 404.5 MB, free: 34.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004423/0.3979, allocations: 3.297 MB / 407.8 MB, free: 32.69 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005952/0.3985, allocations: 1.217 MB / 409 MB, free: 31.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006885/0.3992, allocations: 173.4 kB / 409.2 MB, free: 31.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.3994, allocations: 82.14 kB / 409.3 MB, free: 31.84 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3994, allocations: 0 / 409.3 MB, free: 31.84 MB / 318.1 MB Notification: Performance of Templates: time 0.02142/0.4209, allocations: 15.93 MB / 425.2 MB, free: 15.93 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) Environment - environmentSimulation: