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.001073/0.001073, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001144/0.001145, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.473/1.473, allocations: 205.1 MB / 223.7 MB, free: 12.33 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.00145/0.00145, allocations: 55.92 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09676/0.09822, allocations: 46.63 MB / 326.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.008641/0.1069, allocations: 7.755 MB / 334.4 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005705/0.1126, allocations: 3.022 MB / 337.4 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009171/0.1136, allocations: 31.94 kB / 337.4 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002929/0.1166, allocations: 1.337 MB / 338.8 MB, free: 8.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002076/0.1187, allocations: 0.7997 MB / 339.6 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002346/0.121, allocations: 1.304 MB / 340.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001515/0.1226, allocations: 1.663 MB / 342.5 MB, free: 4.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001632/0.1242, allocations: 1.301 MB / 343.8 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007195/0.1249, allocations: 0.6539 MB / 344.5 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008114/0.1258, allocations: 0.7896 MB / 345.3 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002161/0.126, allocations: 168 kB / 345.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008832/0.1269, allocations: 483.6 kB / 345.9 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.1272, allocations: 374.7 kB / 346.3 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006353/0.1278, allocations: 0.793 MB / 347.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002046/0.1299, allocations: 2.219 MB / 349.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1299, allocations: 0 / 349.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1299, allocations: 0 / 349.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.1299, allocations: 0 / 349.3 MB, free: 13.68 MB / 302.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.005124/0.135, allocations: 2.16 MB / 351.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.1351, allocations: 12.03 kB / 351.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003876/0.139, allocations: 0.6351 MB / 352.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/0.1404, allocations: 0.8175 MB / 352.9 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.1405, allocations: 152.6 kB / 353.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/0.1408, allocations: 148 kB / 353.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002485/0.1433, allocations: 1.359 MB / 354.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.087e-05/0.1433, allocations: 7.906 kB / 354.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.1435, allocations: 63.98 kB / 354.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.561e-05/0.1435, allocations: 36 kB / 354.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002666/0.1462, allocations: 1.339 MB / 356 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00759/0.1538, allocations: 4.984 MB / 361 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003016/0.1568, allocations: 2.44 MB / 363.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.1579, allocations: 0.5785 MB / 364 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.158, allocations: 114.4 kB / 364.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001277/0.1593, allocations: 0.7375 MB / 364.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=134): time 3.076e-06/0.1593, allocations: 0 / 364.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.01364/0.1729, allocations: 5.551 MB / 370.4 MB, free: 7.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.298e-05/0.1731, allocations: 154.5 kB / 370.6 MB, free: 7.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000721/0.1738, allocations: 0.6213 MB / 371.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.841e-05/0.1739, allocations: 57.7 kB / 371.3 MB, free: 6.879 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004233/0.1743, allocations: 0.5856 MB / 371.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003754/0.1747, allocations: 0.5429 MB / 372.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004124/0.1751, allocations: 295.4 kB / 372.7 MB, free: 5.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1753, allocations: 353.9 kB / 373 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.1763, allocations: 0.5076 MB / 373.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.1777, allocations: 0.8807 MB / 374.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002417/0.1801, allocations: 1.492 MB / 375.9 MB, free: 1.926 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1801, allocations: 0 / 375.9 MB, free: 1.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.1669/0.3471, allocations: 2.057 MB / 378 MB, free: 51.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.3471, allocations: 8.969 kB / 378 MB, free: 51.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/0.3472, allocations: 9.812 kB / 378 MB, free: 51.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002017/0.3492, allocations: 0.5266 MB / 378.5 MB, free: 50.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.3505, allocations: 301.2 kB / 378.8 MB, free: 50.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008879/0.3594, allocations: 9.526 MB / 388.3 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.3606, allocations: 79.59 kB / 388.4 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.3607, allocations: 66.73 kB / 388.5 MB, free: 43.96 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,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,rootMeanSquare.mean2.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,9,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0006404/0.3614, allocations: 361.1 kB / 388.8 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001792/0.3616, allocations: 116.8 kB / 388.9 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004285/0.3659, allocations: 1.918 MB / 390.8 MB, free: 42.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.3659, allocations: 16.91 kB / 390.9 MB, free: 42.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.3659, allocations: 10.66 kB / 390.9 MB, free: 42.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/0.3659, allocations: 9.844 kB / 390.9 MB, free: 42.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006434/0.3724, allocations: 3.546 MB / 394.4 MB, free: 41.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/0.3724, allocations: 2.594 kB / 394.4 MB, free: 41.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009736/0.3734, allocations: 215.2 kB / 394.6 MB, free: 41.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001701/0.3751, allocations: 0.5056 MB / 395.1 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.163e-05/0.3752, allocations: 39.52 kB / 395.2 MB, free: 41.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008052/0.3832, allocations: 9.13 MB / 404.3 MB, free: 33.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3833, allocations: 2.438 kB / 404.3 MB, free: 33.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004777/0.3881, allocations: 2.654 MB / 407 MB, free: 32.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004471/0.3885, allocations: 301 kB / 407.3 MB, free: 32.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.3887, allocations: 37.98 kB / 407.3 MB, free: 32.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007131/0.3894, allocations: 58.84 kB / 407.4 MB, free: 32.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000297/0.3897, allocations: 129.7 kB / 407.5 MB, free: 32.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.911e-05/0.3898, allocations: 55.08 kB / 407.5 MB, free: 32.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004694/0.3903, allocations: 430.1 kB / 408 MB, free: 31.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3903, allocations: 0 / 408 MB, free: 31.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001581/0.3919, allocations: 417.5 kB / 408.4 MB, free: 31.79 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,19,100.0%), (1,9,100.0%), (2,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003452/0.3922, allocations: 227.2 kB / 408.6 MB, free: 31.63 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00438/0.3966, allocations: 2.196 MB / 410.8 MB, free: 30.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3966, allocations: 0 / 410.8 MB, free: 30.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.3984, allocations: 1.416 MB / 412.2 MB, free: 29.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006926/0.3991, allocations: 127.1 kB / 412.3 MB, free: 29.32 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003933/0.403, allocations: 2.767 MB / 415.1 MB, free: 26.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.4035, allocations: 1.193 MB / 416.3 MB, free: 25.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006888/0.4042, allocations: 173.1 kB / 416.5 MB, free: 25.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.4045, allocations: 83.41 kB / 416.5 MB, free: 25.06 MB / 318.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4045, allocations: 0 / 416.5 MB, free: 25.06 MB / 318.1 MB Notification: Performance of Templates: time 0.02354/0.428, allocations: 17.42 MB / 434 MB, free: 7.656 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (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)