Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001109/0.001109, allocations: 111.6 kB / 17.06 MB, free: 5.973 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.0009815/0.0009815, allocations: 200 kB / 18.01 MB, free: 5.055 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.352/1.352, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.00118/0.00118, allocations: 51.94 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09052/0.09171, allocations: 46.62 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.2103/0.3021, allocations: 7.755 MB / 382.2 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006224/0.3084, allocations: 3.038 MB / 385.3 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.3097, allocations: 29.97 kB / 385.3 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00348/0.3132, allocations: 1.328 MB / 386.6 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002973/0.3162, allocations: 0.7988 MB / 387.4 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002502/0.3187, allocations: 1.301 MB / 388.7 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002101/0.3208, allocations: 1.677 MB / 390.4 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001714/0.3225, allocations: 1.291 MB / 391.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008069/0.3233, allocations: 0.6585 MB / 392.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007943/0.3241, allocations: 0.7907 MB / 393.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002133/0.3244, allocations: 166.1 kB / 393.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001105/0.3255, allocations: 480.1 kB / 393.8 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002357/0.3257, allocations: 375.1 kB / 394.2 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006538/0.3264, allocations: 0.793 MB / 394.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004042/0.3304, allocations: 2.248 MB / 397.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3305, allocations: 0 / 397.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3305, allocations: 0 / 397.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.567e-05/0.3305, allocations: 9.094 kB / 397.2 MB, free: 1.801 MB / 318.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.006564/0.3371, allocations: 2.144 MB / 399.3 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3372, allocations: 17.8 kB / 399.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004057/0.3412, allocations: 0.6262 MB / 400 MB, free: 448 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001853/0.3431, allocations: 0.8356 MB / 400.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/0.3433, allocations: 146.5 kB / 401 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002793/0.3436, allocations: 161.8 kB / 401.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002862/0.3465, allocations: 1.36 MB / 402.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.513e-05/0.3465, allocations: 1.812 kB / 402.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.3467, allocations: 59.84 kB / 402.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.529e-05/0.3467, allocations: 39.33 kB / 402.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00278/0.3495, allocations: 1.341 MB / 403.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008597/0.3581, allocations: 4.941 MB / 408.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003427/0.3616, allocations: 2.447 MB / 411.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/0.3628, allocations: 0.5823 MB / 411.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.3629, allocations: 107.5 kB / 412 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001446/0.3644, allocations: 0.7402 MB / 412.7 MB, free: 7.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=134): time 3.316e-06/0.3644, allocations: 0 / 412.7 MB, free: 7.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=168): time 0.01548/0.3799, allocations: 5.559 MB / 418.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/0.3801, allocations: 150.5 kB / 418.4 MB, free: 3.086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/0.3812, allocations: 0.6213 MB / 419.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001273/0.3813, allocations: 57.7 kB / 419.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007183/0.382, allocations: 0.5817 MB / 419.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005928/0.3826, allocations: 0.5506 MB / 420.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000555/0.3832, allocations: 287.5 kB / 420.5 MB, free: 0.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002816/0.3835, allocations: 353.9 kB / 420.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.3846, allocations: 0.5115 MB / 421.4 MB, free: 96 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.386, allocations: 0.8808 MB / 422.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002561/0.3885, allocations: 1.48 MB / 423.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.3886, allocations: 4.875 kB / 423.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.00461/0.3932, allocations: 2.066 MB / 425.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.3932, allocations: 12 kB / 425.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/0.3933, allocations: 11.98 kB / 425.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00197/0.3952, allocations: 0.5146 MB / 426.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.3966, allocations: 307.5 kB / 426.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/0.4077, allocations: 9.518 MB / 436.2 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.4093, allocations: 84.02 kB / 436.3 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.4094, allocations: 75.97 kB / 436.3 MB, free: 304 kB / 350.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.0007396/0.4102, allocations: 349.5 kB / 436.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.4104, allocations: 110.5 kB / 436.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004501/0.4149, allocations: 1.922 MB / 438.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.128e-05/0.4149, allocations: 16 kB / 438.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.4149, allocations: 8 kB / 438.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.415, allocations: 7.969 kB / 438.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006841/0.4218, allocations: 3.534 MB / 442.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.4219, allocations: 4 kB / 442.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.4229, allocations: 211.7 kB / 442.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.4248, allocations: 0.4952 MB / 443 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.4249, allocations: 39.98 kB / 443 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/0.4351, allocations: 9.141 MB / 452.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4351, allocations: 4 kB / 452.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005901/0.441, allocations: 2.655 MB / 454.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007095/0.4418, allocations: 291.6 kB / 455.1 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.442, allocations: 36 kB / 455.1 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008077/0.4428, allocations: 67.89 kB / 455.2 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003785/0.4432, allocations: 133.1 kB / 455.3 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-05/0.4433, allocations: 47.98 kB / 455.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006168/0.4439, allocations: 427.1 kB / 455.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.803e-06/0.4439, allocations: 0 / 455.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00182/0.4457, allocations: 423.9 kB / 456.2 MB, free: 11.65 MB / 382.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.0003986/0.4462, allocations: 208.2 kB / 456.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004023/0.4502, allocations: 2.108 MB / 458.5 MB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4502, allocations: 0 / 458.5 MB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002447/0.4527, allocations: 1.421 MB / 459.9 MB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.4538, allocations: 133 kB / 460.1 MB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006249/0.46, allocations: 2.75 MB / 462.8 MB, free: 4.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009008/0.461, allocations: 1.193 MB / 464 MB, free: 3.652 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007478/0.4617, allocations: 169.1 kB / 464.2 MB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.462, allocations: 87.41 kB / 464.3 MB, free: 3.398 MB / 382.1 MB Notification: Performance of SimCode: time 1.663e-06/0.462, allocations: 0 / 464.3 MB, free: 3.398 MB / 382.1 MB Notification: Performance of Templates: time 0.03286/0.4949, allocations: 17.66 MB / 481.9 MB, free: 1.707 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1)