Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001156/0.001156, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001836/0.001836, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 205.4 MB / 222.1 MB, free: 5.867 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.0005184/0.0005188, allocations: 12 kB / 278.9 MB, free: 13.03 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2995, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006772/0.3063, allocations: 5.578 MB / 332.1 MB, free: 13.03 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005293/0.3117, allocations: 2.32 MB / 334.4 MB, free: 11.15 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.3128, allocations: 18.88 kB / 334.4 MB, free: 11.15 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001266/0.3141, allocations: 264.8 kB / 334.7 MB, free: 10.96 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00268/0.3168, allocations: 0.5844 MB / 335.2 MB, free: 10.51 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002534/0.3193, allocations: 0.8865 MB / 336.1 MB, free: 9.832 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002151/0.3215, allocations: 0.9905 MB / 337.1 MB, free: 8.844 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002618/0.3241, allocations: 1.198 MB / 338.3 MB, free: 7.598 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008986/0.3251, allocations: 366.6 kB / 338.7 MB, free: 7.238 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001035/0.3261, allocations: 473.9 kB / 339.1 MB, free: 6.773 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003012/0.3264, allocations: 48 kB / 339.2 MB, free: 6.727 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001302/0.3277, allocations: 351.6 kB / 339.5 MB, free: 6.383 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002766/0.328, allocations: 175.2 kB / 339.7 MB, free: 6.211 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004619/0.3285, allocations: 205.2 kB / 339.9 MB, free: 6.004 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001696/0.3302, allocations: 1.119 MB / 341 MB, free: 4.883 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3302, allocations: 4 kB / 341 MB, free: 4.879 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3302, allocations: 0 / 341 MB, free: 4.879 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.332e-05/0.3303, allocations: 0 / 341 MB, free: 4.879 MB / 270.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.004574/0.3349, allocations: 1.476 MB / 342.5 MB, free: 3.352 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3349, allocations: 12.03 kB / 342.5 MB, free: 3.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003802/0.3387, allocations: 0.5724 MB / 343.1 MB, free: 2.766 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.3398, allocations: 497.3 kB / 343.6 MB, free: 2.238 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.601e-05/0.3399, allocations: 82.3 kB / 343.6 MB, free: 2.156 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002663/0.3401, allocations: 116 kB / 343.8 MB, free: 2.043 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002254/0.3424, allocations: 1.011 MB / 344.8 MB, free: 1.004 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.968e-05/0.3425, allocations: 7.844 kB / 344.8 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/0.3426, allocations: 48 kB / 344.8 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.986e-05/0.3426, allocations: 24 kB / 344.8 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002103/0.3447, allocations: 1.04 MB / 345.9 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007069/0.3518, allocations: 3.874 MB / 349.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.3542, allocations: 2.052 MB / 351.8 MB, free: 9.457 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008277/0.355, allocations: 448.3 kB / 352.3 MB, free: 9.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001161/0.3552, allocations: 98.08 kB / 352.3 MB, free: 8.906 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008853/0.356, allocations: 474.5 kB / 352.8 MB, free: 8.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=98): time 3.336e-06/0.3561, allocations: 4 kB / 352.8 MB, free: 8.414 MB / 286.1 MB Notification: Performance of matching and sorting (n=127): time 0.009406/0.3655, allocations: 4.053 MB / 356.9 MB, free: 4.242 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.727e-05/0.3656, allocations: 145.5 kB / 357 MB, free: 4.066 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005431/0.3662, allocations: 413.8 kB / 357.4 MB, free: 3.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.548e-05/0.3662, allocations: 49.7 kB / 357.5 MB, free: 3.605 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003667/0.3666, allocations: 435.5 kB / 357.9 MB, free: 3.172 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003852/0.367, allocations: 441.6 kB / 358.3 MB, free: 2.734 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.727e-05/0.3671, allocations: 24 kB / 358.3 MB, free: 2.711 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3673, allocations: 382.7 kB / 358.7 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007543/0.368, allocations: 362.4 kB / 359.1 MB, free: 1.973 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008982/0.3689, allocations: 0.5838 MB / 359.7 MB, free: 1.305 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009219/0.3699, allocations: 459.8 kB / 360.1 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.3699, allocations: 0 / 360.1 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002751/0.3726, allocations: 1.421 MB / 361.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.3727, allocations: 8 kB / 361.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.3727, allocations: 11.98 kB / 361.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009766/0.3737, allocations: 359 kB / 361.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008761/0.3746, allocations: 215.7 kB / 362.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009301/0.3839, allocations: 7.724 MB / 369.8 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009943/0.3849, allocations: 55.89 kB / 369.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002024/0.3852, allocations: 47.98 kB / 369.9 MB, free: 6.461 MB / 302.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,$PRE.rootMeanSquare.mean.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008116/0.386, allocations: 269.6 kB / 370.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.3862, allocations: 75.11 kB / 370.3 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002813/0.389, allocations: 1.321 MB / 371.6 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.389, allocations: 12 kB / 371.6 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-05/0.3891, allocations: 12 kB / 371.6 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.3891, allocations: 3.984 kB / 371.6 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004463/0.3936, allocations: 2.573 MB / 374.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.3936, allocations: 0 / 374.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006795/0.3943, allocations: 155.8 kB / 374.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007746/0.3951, allocations: 323.5 kB / 374.7 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.841e-05/0.3951, allocations: 39.92 kB / 374.7 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007674/0.4028, allocations: 7.426 MB / 382.1 MB, free: 9.602 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4029, allocations: 4 kB / 382.1 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003452/0.4063, allocations: 1.824 MB / 383.9 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004104/0.4067, allocations: 228.1 kB / 384.2 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.4069, allocations: 28 kB / 384.2 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005381/0.4075, allocations: 39.98 kB / 384.2 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.4077, allocations: 104.8 kB / 384.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.826e-05/0.4078, allocations: 36 kB / 384.4 MB, free: 7.281 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003699/0.4082, allocations: 279.1 kB / 384.6 MB, free: 7.008 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4082, allocations: 0 / 384.6 MB, free: 7.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001406/0.4096, allocations: 316 kB / 385 MB, free: 6.699 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 19,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003407/0.4099, allocations: 171 kB / 385.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003021/0.413, allocations: 1.645 MB / 386.8 MB, free: 4.828 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.413, allocations: 8.062 kB / 386.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001794/0.4148, allocations: 1.142 MB / 387.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006903/0.4155, allocations: 77.55 kB / 388 MB, free: 3.551 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004485/0.42, allocations: 2.437 MB / 390.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008457/0.4208, allocations: 1.025 MB / 391.5 MB, free: 16 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005912/0.4214, allocations: 106.5 kB / 391.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001886/0.4217, allocations: 63.3 kB / 391.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of SimCode: time 1.412e-06/0.4217, allocations: 0 / 391.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of Templates: time 0.02182/0.4435, allocations: 10.12 MB / 401.7 MB, free: 5.707 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1)