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.001137/0.001137, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.347/1.347, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001347/0.001347, allocations: 51.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2244, allocations: 46.64 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.009468/0.2339, allocations: 7.753 MB / 333.1 MB, free: 11.71 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006026/0.24, allocations: 3.03 MB / 336.1 MB, free: 9.113 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.2413, allocations: 31.88 kB / 336.1 MB, free: 9.082 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003158/0.2444, allocations: 1.333 MB / 337.5 MB, free: 7.742 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002274/0.2467, allocations: 0.8036 MB / 338.3 MB, free: 6.934 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002563/0.2493, allocations: 1.301 MB / 339.6 MB, free: 5.629 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002069/0.2514, allocations: 1.663 MB / 341.2 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001791/0.2532, allocations: 1.281 MB / 342.5 MB, free: 2.652 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008224/0.254, allocations: 0.6617 MB / 343.2 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008633/0.2549, allocations: 0.8012 MB / 344 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002142/0.2551, allocations: 164 kB / 344.1 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009871/0.2561, allocations: 475.7 kB / 344.6 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002912/0.2564, allocations: 374.7 kB / 345 MB, free: 196 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007221/0.2571, allocations: 0.7851 MB / 345.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002226/0.2594, allocations: 2.231 MB / 348 MB, free: 13.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2594, allocations: 3.938 kB / 348 MB, free: 13.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2594, allocations: 4 kB / 348 MB, free: 13.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.2594, allocations: 4 kB / 348 MB, free: 13.15 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.005676/0.2651, allocations: 2.153 MB / 350.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2652, allocations: 8.031 kB / 350.2 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004024/0.2692, allocations: 0.6236 MB / 350.8 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.2707, allocations: 0.8214 MB / 351.6 MB, free: 9.445 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.2709, allocations: 144.6 kB / 351.7 MB, free: 9.297 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/0.2711, allocations: 155.9 kB / 351.9 MB, free: 9.145 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002612/0.2737, allocations: 1.362 MB / 353.3 MB, free: 7.762 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.157e-05/0.2737, allocations: 11.89 kB / 353.3 MB, free: 7.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.2739, allocations: 56 kB / 353.3 MB, free: 7.695 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.2739, allocations: 36 kB / 353.4 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002789/0.2767, allocations: 1.351 MB / 354.7 MB, free: 6.305 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008017/0.2847, allocations: 4.984 MB / 359.7 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003277/0.2881, allocations: 2.444 MB / 362.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.2893, allocations: 0.5824 MB / 362.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.2894, allocations: 106.4 kB / 362.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001442/0.2909, allocations: 0.7258 MB / 363.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=134): time 4.047e-06/0.2909, allocations: 4 kB / 363.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=168): time 0.01529/0.3062, allocations: 5.568 MB / 369.1 MB, free: 7.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.99e-05/0.3063, allocations: 150.5 kB / 369.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008497/0.3072, allocations: 0.6175 MB / 369.9 MB, free: 6.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.3073, allocations: 65.69 kB / 369.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004689/0.3078, allocations: 0.5739 MB / 370.5 MB, free: 5.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004499/0.3082, allocations: 0.5506 MB / 371.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004655/0.3087, allocations: 295.4 kB / 371.4 MB, free: 4.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3089, allocations: 345.9 kB / 371.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.3101, allocations: 0.5115 MB / 372.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.3116, allocations: 0.8807 MB / 373.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.3144, allocations: 1.48 MB / 374.6 MB, free: 1.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/0.3144, allocations: 4 kB / 374.6 MB, free: 1.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004824/0.3192, allocations: 2.059 MB / 376.6 MB, free: 15.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.3193, allocations: 16 kB / 376.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.3193, allocations: 8 kB / 376.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002089/0.3214, allocations: 0.5224 MB / 377.2 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/0.3227, allocations: 303.5 kB / 377.5 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/0.3338, allocations: 9.533 MB / 387 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.3351, allocations: 80.02 kB / 387.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002531/0.3354, allocations: 67.98 kB / 387.2 MB, free: 4.246 MB / 318.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.0007944/0.3362, allocations: 349.5 kB / 387.5 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002644/0.3365, allocations: 118.6 kB / 387.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004791/0.3413, allocations: 1.915 MB / 389.5 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.3413, allocations: 19.94 kB / 389.5 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.24e-05/0.3413, allocations: 11.94 kB / 389.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.3414, allocations: 11.97 kB / 389.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007246/0.3486, allocations: 3.544 MB / 393.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.3486, allocations: 4.125 kB / 393.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009984/0.3497, allocations: 211.8 kB / 393.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.3515, allocations: 0.5091 MB / 393.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.3517, allocations: 36.27 kB / 393.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.3617, allocations: 9.144 MB / 403 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3618, allocations: 4.031 kB / 403 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006097/0.3679, allocations: 2.66 MB / 405.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005729/0.3685, allocations: 287.6 kB / 406 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/0.3687, allocations: 36 kB / 406 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008939/0.3696, allocations: 63.89 kB / 406.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003265/0.37, allocations: 141.1 kB / 406.2 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.744e-05/0.3701, allocations: 47.98 kB / 406.2 MB, free: 412 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006523/0.3707, allocations: 423.1 kB / 406.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3708, allocations: 0 / 406.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001675/0.3724, allocations: 427.9 kB / 407.1 MB, free: 15.57 MB / 350.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.0004348/0.3729, allocations: 204 kB / 407.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005343/0.3782, allocations: 2.198 MB / 409.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.3783, allocations: 4.062 kB / 409.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.3806, allocations: 1.421 MB / 410.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008701/0.3815, allocations: 132.1 kB / 411 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005189/0.3867, allocations: 2.758 MB / 413.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008474/0.3876, allocations: 1.205 MB / 415 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007865/0.3884, allocations: 169.1 kB / 415.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/0.3887, allocations: 87.41 kB / 415.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3887, allocations: 0 / 415.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of Templates: time 0.03023/0.4189, allocations: 17.42 MB / 432.7 MB, free: 5.773 MB / 366.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)