Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.006138/0.006138, allocations: 98.38 kB / 15.73 MB, free: 6.055 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.001187/0.001187, allocations: 191.7 kB / 16.67 MB, free: 5.965 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.428/1.428, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001294/0.001294, allocations: 53.69 kB / 326.5 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1097, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.009439/0.1192, allocations: 7.759 MB / 380.9 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006198/0.1254, allocations: 3.029 MB / 384 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.1269, allocations: 31.94 kB / 384 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00373/0.1306, allocations: 1.333 MB / 385.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002948/0.1336, allocations: 0.8114 MB / 386.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00325/0.1369, allocations: 1.3 MB / 387.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002788/0.1397, allocations: 1.679 MB / 389.1 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002641/0.1423, allocations: 1.293 MB / 390.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.1435, allocations: 0.6577 MB / 391.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001447/0.145, allocations: 0.7974 MB / 391.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005011/0.1455, allocations: 164 kB / 392 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001433/0.147, allocations: 479.6 kB / 392.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000488/0.1475, allocations: 378.7 kB / 392.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001398/0.1489, allocations: 0.7891 MB / 393.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003341/0.1522, allocations: 2.265 MB / 395.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1523, allocations: 0 / 395.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1523, allocations: 0 / 395.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.773e-05/0.1523, allocations: 0 / 395.9 MB, free: 10.46 MB / 334.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.005875/0.1582, allocations: 2.197 MB / 398.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.13e-05/0.1583, allocations: 15.97 kB / 398.1 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003879/0.1622, allocations: 0.6321 MB / 398.8 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002029/0.1642, allocations: 0.8414 MB / 399.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002099/0.1644, allocations: 140.7 kB / 399.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002563/0.1647, allocations: 156 kB / 399.9 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002827/0.1676, allocations: 1.355 MB / 401.2 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.858e-05/0.1676, allocations: 15.95 kB / 401.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.1678, allocations: 59.98 kB / 401.3 MB, free: 4.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.013e-05/0.1678, allocations: 36 kB / 401.4 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.1705, allocations: 1.339 MB / 402.7 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00899/0.1796, allocations: 4.943 MB / 407.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003373/0.183, allocations: 2.448 MB / 410.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/0.1842, allocations: 0.5784 MB / 410.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.1843, allocations: 110.5 kB / 410.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001428/0.1858, allocations: 0.7452 MB / 411.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 3.417e-06/0.1858, allocations: 4 kB / 411.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=168): time 0.01524/0.201, allocations: 5.594 MB / 417.1 MB, free: 4.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.2012, allocations: 154.5 kB / 417.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009324/0.2022, allocations: 0.6175 MB / 417.9 MB, free: 3.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.2023, allocations: 65.69 kB / 417.9 MB, free: 3.578 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005191/0.2028, allocations: 0.5951 MB / 418.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004931/0.2033, allocations: 0.5693 MB / 419.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005011/0.2038, allocations: 295.5 kB / 419.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.204, allocations: 349.9 kB / 419.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.2052, allocations: 0.5076 MB / 420.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.2067, allocations: 0.8768 MB / 421.1 MB, free: 240 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/0.2094, allocations: 1.488 MB / 422.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.2094, allocations: 4 kB / 422.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004697/0.2141, allocations: 2.063 MB / 424.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.2141, allocations: 12 kB / 424.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.2142, allocations: 8 kB / 424.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001959/0.2161, allocations: 0.5223 MB / 425.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.2173, allocations: 307.5 kB / 425.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/0.2285, allocations: 9.523 MB / 435 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.23, allocations: 79.95 kB / 435.1 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002787/0.2303, allocations: 67.98 kB / 435.2 MB, free: 1.449 MB / 366.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.001004/0.2313, allocations: 353.5 kB / 435.5 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002924/0.2316, allocations: 119.2 kB / 435.7 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004915/0.2365, allocations: 1.922 MB / 437.6 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/0.2366, allocations: 16 kB / 437.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.172e-05/0.2366, allocations: 12 kB / 437.6 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.2366, allocations: 7.969 kB / 437.6 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007837/0.2445, allocations: 3.53 MB / 441.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.2445, allocations: 0 / 441.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.2456, allocations: 211.7 kB / 441.3 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001879/0.2475, allocations: 0.4952 MB / 441.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001401/0.2476, allocations: 39.98 kB / 441.9 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/0.2589, allocations: 9.146 MB / 451 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.2589, allocations: 4 kB / 451 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2376/0.4965, allocations: 2.661 MB / 453.7 MB, free: 68.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006343/0.4972, allocations: 299.5 kB / 454 MB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.4974, allocations: 35.16 kB / 454 MB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007528/0.4981, allocations: 65.19 kB / 454.1 MB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004565/0.4986, allocations: 130 kB / 454.2 MB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.4987, allocations: 52.75 kB / 454.3 MB, free: 68.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007368/0.4995, allocations: 424.7 kB / 454.7 MB, free: 68.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.4995, allocations: 0 / 454.7 MB, free: 68.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00187/0.5014, allocations: 427.6 kB / 455.1 MB, free: 68.2 MB / 382.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.0003484/0.5017, allocations: 200.9 kB / 455.3 MB, free: 68.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004134/0.5059, allocations: 2.116 MB / 457.4 MB, free: 67.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/0.5059, allocations: 5 kB / 457.4 MB, free: 67.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002497/0.5084, allocations: 1.423 MB / 458.8 MB, free: 67.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009389/0.5094, allocations: 129.1 kB / 459 MB, free: 67.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005832/0.5152, allocations: 2.789 MB / 461.7 MB, free: 65.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.5163, allocations: 1.198 MB / 462.9 MB, free: 65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006938/0.517, allocations: 173.1 kB / 463.1 MB, free: 64.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.5173, allocations: 83.69 kB / 463.2 MB, free: 64.98 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.5173, allocations: 0 / 463.2 MB, free: 64.98 MB / 382.1 MB Notification: Performance of Templates: time 0.02719/0.5445, allocations: 17.69 MB / 480.9 MB, free: 55.75 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1)