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.001144/0.001144, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001299/0.001299, allocations: 177.3 kB / 15.95 MB, free: 216 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.493/1.493, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004183/0.0004184, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2069, allocations: 47.58 MB / 326.4 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.007052/0.214, allocations: 6.311 MB / 332.8 MB, free: 12.57 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005339/0.2193, allocations: 2.78 MB / 335.5 MB, free: 10.33 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008153/0.2202, allocations: 27.81 kB / 335.6 MB, free: 10.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008406/0.221, allocations: 313.2 kB / 335.9 MB, free: 10.08 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001823/0.2229, allocations: 0.7243 MB / 336.6 MB, free: 9.352 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.2249, allocations: 1.013 MB / 337.6 MB, free: 8.336 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001463/0.2264, allocations: 1.05 MB / 338.7 MB, free: 7.281 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002267/0.2287, allocations: 1.405 MB / 340.1 MB, free: 5.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006948/0.2294, allocations: 0.5058 MB / 340.6 MB, free: 5.312 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007584/0.2302, allocations: 0.63 MB / 341.2 MB, free: 4.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.2303, allocations: 68 kB / 341.3 MB, free: 4.613 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008219/0.2312, allocations: 327.6 kB / 341.6 MB, free: 4.293 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.2314, allocations: 251 kB / 341.8 MB, free: 4.047 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002557/0.2316, allocations: 292.9 kB / 342.1 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001574/0.2332, allocations: 1.671 MB / 343.8 MB, free: 2.078 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2332, allocations: 0 / 343.8 MB, free: 2.078 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2333, allocations: 0 / 343.8 MB, free: 2.078 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.2333, allocations: 4 kB / 343.8 MB, free: 2.074 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.005267/0.2386, allocations: 1.887 MB / 345.7 MB, free: 132 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.2386, allocations: 12.03 kB / 345.7 MB, free: 120 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00425/0.2429, allocations: 0.6342 MB / 346.3 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001769/0.2447, allocations: 0.8206 MB / 347.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.2449, allocations: 152.5 kB / 347.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.2451, allocations: 148 kB / 347.4 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002626/0.2477, allocations: 1.359 MB / 348.8 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.871e-05/0.2478, allocations: 7.891 kB / 348.8 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001545/0.2479, allocations: 60 kB / 348.9 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.298e-05/0.248, allocations: 36 kB / 348.9 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0027/0.2507, allocations: 1.37 MB / 350.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007975/0.2587, allocations: 5.004 MB / 355.3 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003112/0.2618, allocations: 2.461 MB / 357.7 MB, free: 3.488 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.262, allocations: 110.3 kB / 357.8 MB, free: 3.363 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001336/0.2633, allocations: 0.7414 MB / 358.6 MB, free: 2.598 MB / 286.1 MB Notification: Performance of pre-optimization done (n=134): time 2.966e-06/0.2633, allocations: 0 / 358.6 MB, free: 2.598 MB / 286.1 MB Notification: Performance of matching and sorting (n=165): time 0.0136/0.2769, allocations: 5.54 MB / 364.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.189e-05/0.277, allocations: 153.7 kB / 364.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007437/0.2778, allocations: 0.6252 MB / 364.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.2779, allocations: 61.69 kB / 365 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.2783, allocations: 0.5739 MB / 365.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004126/0.2788, allocations: 0.5352 MB / 366.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.763e-05/0.2788, allocations: 32 kB / 366.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.2791, allocations: 418.7 kB / 366.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.2802, allocations: 0.5154 MB / 367 MB, free: 9.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/0.2815, allocations: 0.8768 MB / 367.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.2827, allocations: 0.6338 MB / 368.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.2828, allocations: 4 kB / 368.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004373/0.2871, allocations: 2.062 MB / 370.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.2872, allocations: 12 kB / 370.6 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.2872, allocations: 8 kB / 370.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002043/0.2893, allocations: 0.5223 MB / 371.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.2905, allocations: 307.5 kB / 371.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.3005, allocations: 8.751 MB / 380.2 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.3018, allocations: 88.02 kB / 380.3 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.3019, allocations: 67.98 kB / 380.3 MB, free: 11.93 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,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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: 3 {(1,100.0%) 9,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007021/0.3026, allocations: 353.4 kB / 380.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.3028, allocations: 114.6 kB / 380.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004383/0.3072, allocations: 1.906 MB / 382.7 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/0.3072, allocations: 16 kB / 382.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.3072, allocations: 11.98 kB / 382.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/0.3073, allocations: 7.969 kB / 382.7 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006283/0.3136, allocations: 3.43 MB / 386.2 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.3136, allocations: 0 / 386.2 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000975/0.3146, allocations: 211.8 kB / 386.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/0.3166, allocations: 0.5088 MB / 386.9 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.3167, allocations: 43.98 kB / 386.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0113/0.328, allocations: 8.461 MB / 395.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3281, allocations: 0 / 395.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005991/0.3341, allocations: 2.659 MB / 398.1 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006084/0.3347, allocations: 287.6 kB / 398.3 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.3349, allocations: 35.94 kB / 398.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007211/0.3356, allocations: 71.95 kB / 398.4 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.336, allocations: 125.1 kB / 398.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002465/0.3362, allocations: 43.98 kB / 398.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000607/0.3368, allocations: 423 kB / 399 MB, free: 8.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3369, allocations: 4 kB / 399 MB, free: 8.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00168/0.3386, allocations: 420 kB / 399.4 MB, free: 8.148 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (115): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 3 {(2,100.0%) 18,(1,100.0%) 9,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000377/0.3389, allocations: 208.2 kB / 399.6 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003922/0.3429, allocations: 2.116 MB / 401.7 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3429, allocations: 0 / 401.7 MB, free: 5.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002351/0.3453, allocations: 1.42 MB / 403.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005989/0.3459, allocations: 97.72 kB / 403.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005651/0.3515, allocations: 3.288 MB / 406.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008709/0.3524, allocations: 1.224 MB / 407.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008009/0.3532, allocations: 173 kB / 407.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002437/0.3535, allocations: 83.41 kB / 408 MB, free: 15.38 MB / 350.1 MB Notification: Performance of SimCode: time 1.613e-06/0.3535, allocations: 4 kB / 408 MB, free: 15.37 MB / 350.1 MB Notification: Performance of Templates: time 0.02799/0.3815, allocations: 15.91 MB / 423.9 MB, free: 15.43 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: