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.001254/0.001255, allocations: 111.6 kB / 17.06 MB, free: 6 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.001139/0.001139, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.34/1.34, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001353/0.001353, allocations: 51.92 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09995/0.1013, allocations: 46.61 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.2382/0.3395, allocations: 7.762 MB / 382.2 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005311/0.3449, allocations: 3.032 MB / 385.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006588/0.3456, allocations: 28.41 kB / 385.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002932/0.3485, allocations: 1.334 MB / 386.6 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002172/0.3507, allocations: 0.805 MB / 387.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002288/0.353, allocations: 1.299 MB / 388.7 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001843/0.3549, allocations: 1.681 MB / 390.4 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00178/0.3567, allocations: 1.298 MB / 391.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009762/0.3576, allocations: 0.6554 MB / 392.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.3587, allocations: 0.7915 MB / 393.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002473/0.359, allocations: 165.2 kB / 393.3 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.3602, allocations: 475.2 kB / 393.8 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003326/0.3605, allocations: 382.2 kB / 394.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007161/0.3613, allocations: 0.7875 MB / 395 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003736/0.365, allocations: 2.251 MB / 397.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.365, allocations: 4 kB / 397.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.3651, allocations: 1.125 kB / 397.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.716e-05/0.3651, allocations: 0 / 397.2 MB, free: 1.805 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.006574/0.3717, allocations: 2.154 MB / 399.4 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3718, allocations: 10.03 kB / 399.4 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00413/0.3759, allocations: 0.6267 MB / 400 MB, free: 448 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.3778, allocations: 0.8381 MB / 400.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.378, allocations: 144.9 kB / 401 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002715/0.3783, allocations: 158.9 kB / 401.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00319/0.3815, allocations: 1.359 MB / 402.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.876e-05/0.3816, allocations: 1.281 kB / 402.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001547/0.3817, allocations: 64.52 kB / 402.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.491e-05/0.3818, allocations: 36.03 kB / 402.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003113/0.3849, allocations: 1.341 MB / 403.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009251/0.3942, allocations: 4.949 MB / 408.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003527/0.3977, allocations: 2.443 MB / 411.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/0.399, allocations: 0.5811 MB / 411.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001501/0.3991, allocations: 111.8 kB / 412 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001393/0.4005, allocations: 0.7372 MB / 412.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=134): time 2.966e-06/0.4005, allocations: 0 / 412.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=168): time 0.01468/0.4152, allocations: 5.554 MB / 418.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.4154, allocations: 158.4 kB / 418.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008815/0.4163, allocations: 0.6174 MB / 419.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.4164, allocations: 61.69 kB / 419.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004544/0.4169, allocations: 0.5779 MB / 419.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004438/0.4173, allocations: 0.5506 MB / 420.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000452/0.4178, allocations: 295.5 kB / 420.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.4179, allocations: 349.9 kB / 420.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.4191, allocations: 0.5076 MB / 421.4 MB, free: 100 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.4206, allocations: 0.8808 MB / 422.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002595/0.4232, allocations: 1.48 MB / 423.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.4232, allocations: 4 kB / 423.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004467/0.4277, allocations: 2.066 MB / 425.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.4277, allocations: 12 kB / 425.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.4277, allocations: 8 kB / 425.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001892/0.4296, allocations: 0.5185 MB / 426.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.4308, allocations: 303.5 kB / 426.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/0.4416, allocations: 9.518 MB / 436.2 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.4429, allocations: 80.02 kB / 436.3 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.443, allocations: 71.98 kB / 436.3 MB, free: 316 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.0007602/0.4438, allocations: 357.6 kB / 436.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.444, allocations: 106.7 kB / 436.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004552/0.4486, allocations: 1.922 MB / 438.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.132e-05/0.4486, allocations: 16 kB / 438.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.4486, allocations: 8 kB / 438.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.4486, allocations: 7.969 kB / 438.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006863/0.4555, allocations: 3.534 MB / 442.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.4555, allocations: 3.938 kB / 442.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.4566, allocations: 211.7 kB / 442.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/0.4584, allocations: 0.496 MB / 443 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.4586, allocations: 36.27 kB / 443 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/0.4689, allocations: 9.145 MB / 452.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/0.469, allocations: 4 kB / 452.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005936/0.4749, allocations: 2.655 MB / 454.8 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006503/0.4756, allocations: 291.6 kB / 455.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/0.4758, allocations: 36 kB / 455.1 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008904/0.4767, allocations: 67.89 kB / 455.2 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/0.4771, allocations: 133.1 kB / 455.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.4772, allocations: 51.98 kB / 455.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005999/0.4778, allocations: 427 kB / 455.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4778, allocations: 3.938 kB / 455.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001726/0.4795, allocations: 416 kB / 456.2 MB, free: 11.66 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.0003736/0.4799, allocations: 204.5 kB / 456.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003971/0.4839, allocations: 2.112 MB / 458.5 MB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4839, allocations: 0 / 458.5 MB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002372/0.4863, allocations: 1.417 MB / 459.9 MB, free: 7.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009071/0.4872, allocations: 136.5 kB / 460.1 MB, free: 7.684 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00614/0.4934, allocations: 2.754 MB / 462.8 MB, free: 4.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.4947, allocations: 1.193 MB / 464 MB, free: 3.656 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008243/0.4955, allocations: 173.1 kB / 464.2 MB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.4959, allocations: 83.41 kB / 464.3 MB, free: 3.402 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4959, allocations: 0 / 464.3 MB, free: 3.402 MB / 382.1 MB Notification: Performance of Templates: time 0.03435/0.5302, allocations: 17.67 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)