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.005696/0.005696, allocations: 106.2 kB / 15.74 MB, free: 6 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.001248/0.001248, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.416/1.416, allocations: 205.1 MB / 222.5 MB, free: 4.352 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.001171/0.001171, allocations: 46.06 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1037, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.009955/0.1137, allocations: 7.759 MB / 380.9 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006278/0.1201, allocations: 3.033 MB / 384 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001153/0.1213, allocations: 27.94 kB / 384 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003348/0.1246, allocations: 1.337 MB / 385.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002469/0.1271, allocations: 0.8152 MB / 386.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002652/0.1298, allocations: 1.29 MB / 387.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001926/0.1317, allocations: 1.679 MB / 389.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.1335, allocations: 1.285 MB / 390.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000844/0.1344, allocations: 0.6578 MB / 391.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009535/0.1353, allocations: 0.8013 MB / 391.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002286/0.1356, allocations: 168 kB / 392 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009867/0.1366, allocations: 475.6 kB / 392.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003056/0.1369, allocations: 374.7 kB / 392.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007827/0.1377, allocations: 0.7891 MB / 393.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00282/0.1405, allocations: 2.258 MB / 395.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1405, allocations: 4 kB / 395.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1406, allocations: 0 / 395.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.159e-05/0.1406, allocations: 0 / 395.9 MB, free: 10.45 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.005833/0.1464, allocations: 2.149 MB / 398.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.1465, allocations: 11.97 kB / 398.1 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00408/0.1506, allocations: 0.6235 MB / 398.7 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.1522, allocations: 0.837 MB / 399.5 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.1524, allocations: 144.7 kB / 399.7 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002291/0.1527, allocations: 159.9 kB / 399.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002719/0.1554, allocations: 1.359 MB / 401.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.701e-05/0.1554, allocations: 4 kB / 401.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.1556, allocations: 60 kB / 401.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.833e-05/0.1556, allocations: 32 kB / 401.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002703/0.1583, allocations: 1.351 MB / 402.6 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008211/0.1666, allocations: 4.942 MB / 407.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003149/0.1697, allocations: 2.436 MB / 410 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.1709, allocations: 0.5862 MB / 410.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001454/0.171, allocations: 102.4 kB / 410.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00137/0.1724, allocations: 0.7491 MB / 411.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 3.566e-06/0.1724, allocations: 0 / 411.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=168): time 0.01371/0.1862, allocations: 5.551 MB / 417 MB, free: 4.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.1863, allocations: 154.5 kB / 417.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008592/0.1872, allocations: 0.6252 MB / 417.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.1873, allocations: 61.7 kB / 417.8 MB, free: 3.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004534/0.1877, allocations: 0.5778 MB / 418.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004029/0.1882, allocations: 0.5428 MB / 418.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004129/0.1886, allocations: 291.5 kB / 419.2 MB, free: 2.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1887, allocations: 349.9 kB / 419.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/0.1898, allocations: 0.5154 MB / 420.1 MB, free: 1.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.1911, allocations: 0.8729 MB / 421 MB, free: 372 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00237/0.1934, allocations: 1.488 MB / 422.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.1935, allocations: 4 kB / 422.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004318/0.1978, allocations: 2.066 MB / 424.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.1978, allocations: 12 kB / 424.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.1979, allocations: 8 kB / 424.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/0.1997, allocations: 0.5262 MB / 425.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.2009, allocations: 303.5 kB / 425.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.2119, allocations: 9.525 MB / 434.9 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.213, allocations: 75.95 kB / 435 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.2131, allocations: 67.98 kB / 435 MB, free: 1.574 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.0007621/0.2139, allocations: 353.5 kB / 435.4 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/0.2141, allocations: 106.7 kB / 435.5 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004309/0.2184, allocations: 1.926 MB / 437.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/0.2185, allocations: 16 kB / 437.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/0.2185, allocations: 8 kB / 437.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.2185, allocations: 7.969 kB / 437.4 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006562/0.2251, allocations: 3.53 MB / 441 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.2251, allocations: 0 / 441 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009504/0.2261, allocations: 211.9 kB / 441.2 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001761/0.2278, allocations: 0.4914 MB / 441.7 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.2279, allocations: 39.98 kB / 441.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01031/0.2383, allocations: 9.149 MB / 450.9 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2383, allocations: 3.984 kB / 450.9 MB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2386/0.4769, allocations: 2.652 MB / 453.5 MB, free: 68.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007777/0.4778, allocations: 293.6 kB / 453.8 MB, free: 68.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003305/0.4781, allocations: 36.59 kB / 453.8 MB, free: 68.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.4791, allocations: 64.23 kB / 453.9 MB, free: 68.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004423/0.4796, allocations: 128 kB / 454 MB, free: 68.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/0.4798, allocations: 57.56 kB / 454.1 MB, free: 68.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007411/0.4805, allocations: 426.7 kB / 454.5 MB, free: 68.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.4805, allocations: 0 / 454.5 MB, free: 68.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00212/0.4827, allocations: 418.1 kB / 454.9 MB, free: 68.29 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.0004666/0.4831, allocations: 201.2 kB / 455.1 MB, free: 68.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004353/0.4875, allocations: 2.112 MB / 457.2 MB, free: 67.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.4875, allocations: 1.094 kB / 457.2 MB, free: 67.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002393/0.4899, allocations: 1.414 MB / 458.6 MB, free: 67.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008993/0.4908, allocations: 124.2 kB / 458.7 MB, free: 67.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006884/0.4977, allocations: 2.745 MB / 461.5 MB, free: 65.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001364/0.4991, allocations: 1.2 MB / 462.7 MB, free: 65.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009443/0.5001, allocations: 171.4 kB / 462.9 MB, free: 65.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003207/0.5004, allocations: 89.17 kB / 462.9 MB, free: 65.13 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5004, allocations: 0 / 462.9 MB, free: 65.13 MB / 382.1 MB Notification: Performance of Templates: time 0.0298/0.5302, allocations: 17.68 MB / 480.6 MB, free: 55.97 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)