Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.006828/0.006828, allocations: 107.3 kB / 15.74 MB, free: 6.039 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.001497/0.001497, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.427/1.427, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001393/0.001393, allocations: 58.19 kB / 326.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.09286, allocations: 46.61 MB / 373.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.009322/0.1022, allocations: 7.756 MB / 380.9 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006336/0.1086, allocations: 3.033 MB / 384 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.1103, allocations: 35.88 kB / 384 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003415/0.1137, allocations: 1.329 MB / 385.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002439/0.1161, allocations: 0.8114 MB / 386.1 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002639/0.1188, allocations: 1.297 MB / 387.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00214/0.121, allocations: 1.683 MB / 389.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001907/0.1229, allocations: 1.289 MB / 390.4 MB, free: 132 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000973/0.1239, allocations: 0.6539 MB / 391.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.1252, allocations: 0.8052 MB / 391.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004565/0.1257, allocations: 164 kB / 392 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.127, allocations: 475.7 kB / 392.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004577/0.1275, allocations: 374.7 kB / 392.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001132/0.1286, allocations: 0.793 MB / 393.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002729/0.1313, allocations: 2.254 MB / 395.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1314, allocations: 0 / 395.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1314, allocations: 0 / 395.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.388e-05/0.1314, allocations: 0 / 395.9 MB, free: 10.61 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.005887/0.1373, allocations: 2.149 MB / 398 MB, free: 8.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1374, allocations: 12.03 kB / 398.1 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004122/0.1415, allocations: 0.6273 MB / 398.7 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001638/0.1431, allocations: 0.8409 MB / 399.5 MB, free: 6.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.1433, allocations: 144.6 kB / 399.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002801/0.1436, allocations: 155.9 kB / 399.8 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00299/0.1466, allocations: 1.355 MB / 401.2 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/0.1467, allocations: 8 kB / 401.2 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.1468, allocations: 63.98 kB / 401.2 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.793e-05/0.1469, allocations: 36 kB / 401.3 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002823/0.1497, allocations: 1.339 MB / 402.6 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009172/0.1589, allocations: 4.942 MB / 407.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003331/0.1623, allocations: 2.448 MB / 410 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.1635, allocations: 0.5745 MB / 410.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.1636, allocations: 114.4 kB / 410.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/0.1651, allocations: 0.7335 MB / 411.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 3.446e-06/0.1651, allocations: 4 kB / 411.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=168): time 0.01494/0.18, allocations: 5.559 MB / 417 MB, free: 4.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.1802, allocations: 146.5 kB / 417.1 MB, free: 4.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00085/0.181, allocations: 0.6252 MB / 417.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.1812, allocations: 61.69 kB / 417.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000448/0.1816, allocations: 0.5818 MB / 418.4 MB, free: 3.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004738/0.1821, allocations: 0.5506 MB / 419 MB, free: 2.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004612/0.1826, allocations: 291.5 kB / 419.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1827, allocations: 341.9 kB / 419.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.1839, allocations: 0.5076 MB / 420.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.1853, allocations: 0.8807 MB / 421 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/0.1879, allocations: 1.488 MB / 422.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.1879, allocations: 4 kB / 422.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004592/0.1925, allocations: 2.066 MB / 424.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.1926, allocations: 12 kB / 424.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.1926, allocations: 8 kB / 424.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001961/0.1946, allocations: 0.5224 MB / 425.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.1958, allocations: 307.5 kB / 425.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01086/0.2067, allocations: 9.514 MB / 434.9 MB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.2079, allocations: 83.89 kB / 435 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.208, allocations: 71.98 kB / 435 MB, free: 1.738 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.0007004/0.2087, allocations: 349.5 kB / 435.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/0.209, allocations: 110.7 kB / 435.5 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004569/0.2135, allocations: 1.918 MB / 437.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.2136, allocations: 16 kB / 437.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.64e-05/0.2136, allocations: 12 kB / 437.4 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-05/0.2136, allocations: 11.97 kB / 437.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006884/0.2205, allocations: 3.522 MB / 441 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.2206, allocations: 0 / 441 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.2216, allocations: 215.7 kB / 441.2 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/0.2235, allocations: 0.4953 MB / 441.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/0.2237, allocations: 36.27 kB / 441.7 MB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01048/0.2342, allocations: 9.149 MB / 450.8 MB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.797e-06/0.2342, allocations: 4 kB / 450.8 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2301/0.4643, allocations: 2.652 MB / 453.5 MB, free: 68.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006535/0.465, allocations: 295.3 kB / 453.8 MB, free: 68.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.4652, allocations: 40.72 kB / 453.8 MB, free: 68.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007678/0.466, allocations: 57.41 kB / 453.9 MB, free: 68.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003529/0.4663, allocations: 133.6 kB / 454 MB, free: 68.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.4664, allocations: 56.97 kB / 454.1 MB, free: 68.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005577/0.467, allocations: 427.7 kB / 454.5 MB, free: 68.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.467, allocations: 0 / 454.5 MB, free: 68.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001534/0.4685, allocations: 421.7 kB / 454.9 MB, free: 68.19 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.0003396/0.4689, allocations: 192.6 kB / 455.1 MB, free: 68.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003722/0.4726, allocations: 2.11 MB / 457.2 MB, free: 67.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.4726, allocations: 1.594 kB / 457.2 MB, free: 67.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002201/0.4749, allocations: 1.414 MB / 458.6 MB, free: 67.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000754/0.4756, allocations: 127.3 kB / 458.7 MB, free: 67.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004815/0.4804, allocations: 2.749 MB / 461.5 MB, free: 65.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008191/0.4813, allocations: 1.195 MB / 462.7 MB, free: 65.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000635/0.4819, allocations: 173.7 kB / 462.9 MB, free: 65.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.4822, allocations: 85.12 kB / 462.9 MB, free: 65.06 MB / 382.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4822, allocations: 0 / 462.9 MB, free: 65.06 MB / 382.1 MB Notification: Performance of Templates: time 0.02485/0.507, allocations: 17.67 MB / 480.6 MB, free: 56.17 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1)