Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001471/0.001471, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.509/1.509, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001122/0.001122, allocations: 47.92 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1018, allocations: 46.63 MB / 326 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.007938/0.1098, allocations: 6.424 MB / 332.4 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005284/0.1151, allocations: 2.555 MB / 334.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000811/0.116, allocations: 20 kB / 335 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002946/0.119, allocations: 1.195 MB / 336.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002038/0.121, allocations: 0.6453 MB / 336.8 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002213/0.1232, allocations: 1.052 MB / 337.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.1248, allocations: 1.04 MB / 338.9 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001382/0.1261, allocations: 0.7956 MB / 339.7 MB, free: 7.074 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006461/0.1268, allocations: 430.3 kB / 340.1 MB, free: 6.652 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006213/0.1274, allocations: 0.5406 MB / 340.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.1276, allocations: 68 kB / 340.7 MB, free: 6.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001036/0.1286, allocations: 371.7 kB / 341.1 MB, free: 5.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.1288, allocations: 215.1 kB / 341.3 MB, free: 5.469 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004902/0.1293, allocations: 0.5013 MB / 341.8 MB, free: 4.965 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.131, allocations: 1.476 MB / 343.3 MB, free: 3.484 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.131, allocations: 4 kB / 343.3 MB, free: 3.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.131, allocations: 0 / 343.3 MB, free: 3.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.131, allocations: 0 / 343.3 MB, free: 3.48 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.004543/0.1356, allocations: 1.659 MB / 344.9 MB, free: 1.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1356, allocations: 8.031 kB / 344.9 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00382/0.1395, allocations: 0.5772 MB / 345.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000739/0.1402, allocations: 498 kB / 346 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.869e-05/0.1403, allocations: 86.3 kB / 346.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.1405, allocations: 116 kB / 346.2 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.1424, allocations: 1.007 MB / 347.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.331e-05/0.1425, allocations: 3.906 kB / 347.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.1426, allocations: 52 kB / 347.3 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.601e-05/0.1427, allocations: 28 kB / 347.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.1445, allocations: 1.032 MB / 348.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005966/0.1505, allocations: 3.869 MB / 352.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002278/0.1528, allocations: 2.056 MB / 354.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000763/0.1536, allocations: 443.6 kB / 354.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.1537, allocations: 106.2 kB / 354.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008987/0.1546, allocations: 478.4 kB / 355.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 2.605e-06/0.1546, allocations: 4 kB / 355.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=127): time 0.008835/0.1635, allocations: 4.01 MB / 359.3 MB, free: 2.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.1636, allocations: 149.5 kB / 359.4 MB, free: 2.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004637/0.1641, allocations: 405.8 kB / 359.8 MB, free: 2.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.732e-05/0.1642, allocations: 49.69 kB / 359.8 MB, free: 2.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003195/0.1645, allocations: 443.4 kB / 360.3 MB, free: 1.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002898/0.1648, allocations: 425.7 kB / 360.7 MB, free: 1.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/0.1651, allocations: 218.8 kB / 360.9 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1653, allocations: 386.7 kB / 361.3 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007311/0.166, allocations: 358.5 kB / 361.6 MB, free: 244 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009299/0.1669, allocations: 0.5916 MB / 362.2 MB, free: 15.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.1685, allocations: 1.009 MB / 363.2 MB, free: 14.47 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1685, allocations: 0 / 363.2 MB, free: 14.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002553/0.1711, allocations: 1.433 MB / 364.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.1711, allocations: 8 kB / 364.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.1712, allocations: 8 kB / 364.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008685/0.172, allocations: 347 kB / 365 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008567/0.1729, allocations: 223.7 kB / 365.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007288/0.1802, allocations: 7.739 MB / 373 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008479/0.1811, allocations: 47.98 kB / 373 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.583e-05/0.1812, allocations: 51.98 kB / 373.1 MB, free: 4.07 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004547/0.1816, allocations: 265.6 kB / 373.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.1817, allocations: 71.16 kB / 373.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002434/0.1842, allocations: 1.325 MB / 374.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.1842, allocations: 15.98 kB / 374.7 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.1842, allocations: 11.94 kB / 374.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.1842, allocations: 3.984 kB / 374.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1728/0.357, allocations: 2.561 MB / 377.3 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.357, allocations: 2.375 kB / 377.3 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008099/0.3579, allocations: 158.5 kB / 377.5 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008357/0.3587, allocations: 324.8 kB / 377.8 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.657e-05/0.3588, allocations: 26.34 kB / 377.8 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00611/0.3649, allocations: 7.437 MB / 385.3 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.3649, allocations: 15.53 kB / 385.3 MB, free: 46.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/0.3682, allocations: 1.837 MB / 387.1 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000313/0.3686, allocations: 226.5 kB / 387.3 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.912e-05/0.3687, allocations: 25.22 kB / 387.4 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005146/0.3692, allocations: 37.36 kB / 387.4 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/0.3694, allocations: 99.7 kB / 387.5 MB, free: 45.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.581e-05/0.3695, allocations: 35.27 kB / 387.5 MB, free: 45.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003162/0.3698, allocations: 280.4 kB / 387.8 MB, free: 44.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3698, allocations: 0 / 387.8 MB, free: 44.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001254/0.3711, allocations: 321.3 kB / 388.1 MB, free: 44.84 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002791/0.3714, allocations: 165.1 kB / 388.3 MB, free: 44.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.374, allocations: 1.641 MB / 389.9 MB, free: 43.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.374, allocations: 1.062 kB / 389.9 MB, free: 43.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.3756, allocations: 1.147 MB / 391.1 MB, free: 43.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005571/0.3761, allocations: 77.12 kB / 391.1 MB, free: 43.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.3803, allocations: 2.489 MB / 393.6 MB, free: 41.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008611/0.3812, allocations: 1.026 MB / 394.7 MB, free: 40.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005188/0.3817, allocations: 108.5 kB / 394.8 MB, free: 40.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.3819, allocations: 58.55 kB / 394.8 MB, free: 40.81 MB / 318.1 MB Notification: Performance of SimCode: time 3.888e-06/0.3819, allocations: 0 / 394.8 MB, free: 40.81 MB / 318.1 MB Notification: Performance of Templates: time 0.01614/0.398, allocations: 10.62 MB / 405.4 MB, free: 36.32 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1)