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.001046/0.001047, allocations: 108 kB / 15.6 MB, free: 132 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.001227/0.001227, allocations: 195.9 kB / 16.53 MB, free: 6.672 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.414/1.414, allocations: 205.1 MB / 222.4 MB, free: 4.637 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.001249/0.001249, allocations: 51.94 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2384, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.01043/0.2489, allocations: 7.757 MB / 333.1 MB, free: 11.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006528/0.2555, allocations: 3.029 MB / 336.1 MB, free: 9.098 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001289/0.2568, allocations: 27.94 kB / 336.1 MB, free: 9.07 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003302/0.2601, allocations: 1.333 MB / 337.5 MB, free: 7.73 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002493/0.2626, allocations: 0.8113 MB / 338.3 MB, free: 6.914 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002559/0.2652, allocations: 1.293 MB / 339.6 MB, free: 5.617 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002043/0.2673, allocations: 1.656 MB / 341.2 MB, free: 3.953 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001742/0.269, allocations: 1.301 MB / 342.5 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007382/0.2698, allocations: 0.6539 MB / 343.2 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008478/0.2706, allocations: 0.7974 MB / 344 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002175/0.2709, allocations: 168 kB / 344.1 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001024/0.2719, allocations: 475.6 kB / 344.6 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003169/0.2722, allocations: 378.7 kB / 345 MB, free: 176 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006643/0.2729, allocations: 0.7851 MB / 345.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002349/0.2752, allocations: 2.227 MB / 348 MB, free: 13.15 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2753, allocations: 4 kB / 348 MB, free: 13.14 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2753, allocations: 0 / 348 MB, free: 13.14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.2753, allocations: 0 / 348 MB, free: 13.14 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.005505/0.2808, allocations: 2.149 MB / 350.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.2809, allocations: 8.031 kB / 350.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004138/0.285, allocations: 0.6313 MB / 350.8 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.2866, allocations: 0.8253 MB / 351.6 MB, free: 9.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.2868, allocations: 144.6 kB / 351.7 MB, free: 9.281 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.287, allocations: 155.9 kB / 351.9 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002602/0.2896, allocations: 1.362 MB / 353.3 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.982e-05/0.2897, allocations: 3.906 kB / 353.3 MB, free: 7.742 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001403/0.2898, allocations: 67.98 kB / 353.3 MB, free: 7.676 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/0.2898, allocations: 36 kB / 353.4 MB, free: 7.641 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00273/0.2926, allocations: 1.339 MB / 354.7 MB, free: 6.297 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008378/0.301, allocations: 4.981 MB / 359.7 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003478/0.3045, allocations: 2.444 MB / 362.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.3057, allocations: 0.5863 MB / 362.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.3059, allocations: 110.4 kB / 362.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001428/0.3073, allocations: 0.7297 MB / 363.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=134): time 2.935e-06/0.3073, allocations: 0 / 363.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=168): time 0.01443/0.3218, allocations: 5.556 MB / 369.1 MB, free: 7.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.315e-05/0.3219, allocations: 162.4 kB / 369.3 MB, free: 7.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007851/0.3227, allocations: 0.6174 MB / 369.9 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.899e-05/0.3228, allocations: 61.7 kB / 369.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004394/0.3233, allocations: 0.5739 MB / 370.5 MB, free: 5.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004227/0.3237, allocations: 0.5545 MB / 371.1 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005392/0.3242, allocations: 291.4 kB / 371.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.3244, allocations: 349.9 kB / 371.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.3257, allocations: 0.5076 MB / 372.2 MB, free: 4.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.3273, allocations: 0.8846 MB / 373.1 MB, free: 3.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002807/0.3301, allocations: 1.488 MB / 374.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.3301, allocations: 4 kB / 374.6 MB, free: 1.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004652/0.3348, allocations: 2.055 MB / 376.6 MB, free: 15.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/0.3349, allocations: 11.94 kB / 376.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.3349, allocations: 8 kB / 376.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001938/0.3368, allocations: 0.5263 MB / 377.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.3381, allocations: 303.5 kB / 377.5 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.3488, allocations: 9.533 MB / 387 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.3503, allocations: 79.95 kB / 387.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002638/0.3506, allocations: 63.98 kB / 387.2 MB, free: 4.234 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.0008965/0.3515, allocations: 353.5 kB / 387.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002798/0.3518, allocations: 114.6 kB / 387.6 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004669/0.3565, allocations: 1.918 MB / 389.5 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/0.3565, allocations: 20 kB / 389.5 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-05/0.3565, allocations: 7.938 kB / 389.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.209e-05/0.3566, allocations: 11.97 kB / 389.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007755/0.3643, allocations: 3.548 MB / 393.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.3644, allocations: 0 / 393.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.3654, allocations: 211.7 kB / 393.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/0.3675, allocations: 0.5134 MB / 393.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000144/0.3677, allocations: 43.98 kB / 393.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01208/0.3798, allocations: 9.141 MB / 403 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3798, allocations: 0 / 403 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007014/0.3868, allocations: 2.657 MB / 405.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006107/0.3875, allocations: 299.6 kB / 406 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002485/0.3878, allocations: 36 kB / 406 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009081/0.3887, allocations: 63.89 kB / 406.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004194/0.3891, allocations: 129.1 kB / 406.2 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.3892, allocations: 55.98 kB / 406.2 MB, free: 392 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007186/0.39, allocations: 423.1 kB / 406.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.39, allocations: 0 / 406.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002063/0.392, allocations: 424 kB / 407.1 MB, free: 15.56 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.0004767/0.3925, allocations: 211.9 kB / 407.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005569/0.3981, allocations: 2.194 MB / 409.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.3981, allocations: 4 kB / 409.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002549/0.4007, allocations: 1.421 MB / 410.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.4017, allocations: 131.4 kB / 411 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/0.4077, allocations: 2.762 MB / 413.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.4088, allocations: 1.193 MB / 415 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009662/0.4098, allocations: 177.1 kB / 415.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.4101, allocations: 79.42 kB / 415.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4101, allocations: 0 / 415.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of Templates: time 0.03374/0.4438, allocations: 17.41 MB / 432.6 MB, free: 5.766 MB / 366.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)