Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008907/0.0008908, allocations: 97.58 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009365/0.0009366, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.2 MB / 245.9 MB, free: 12.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003568, allocations: 4 kB / 306.6 MB, free: 1.633 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1234, allocations: 51.49 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.00733/0.1307, allocations: 5.102 MB / 363.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004139/0.1349, allocations: 1.84 MB / 365 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006051/0.1356, allocations: 16 kB / 365 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004645/0.136, allocations: 158.9 kB / 365.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.1372, allocations: 422.7 kB / 365.6 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007541/0.1379, allocations: 211.6 kB / 365.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001511/0.1394, allocations: 0.9049 MB / 366.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006894/0.1401, allocations: 373.5 kB / 367.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006607/0.1408, allocations: 426.4 kB / 367.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007155/0.1416, allocations: 0.494 MB / 368 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.1417, allocations: 60 kB / 368 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.1419, allocations: 71.94 kB / 368.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002251/0.1422, allocations: 191.2 kB / 368.3 MB, free: 3.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002756/0.1425, allocations: 241.1 kB / 368.5 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.1441, allocations: 1.453 MB / 370 MB, free: 2.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1442, allocations: 0 / 370 MB, free: 2.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1442, allocations: 0 / 370 MB, free: 2.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.1442, allocations: 0 / 370 MB, free: 2.156 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.003452/0.1477, allocations: 1.305 MB / 371.3 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1477, allocations: 8.031 kB / 371.3 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007229/0.1484, allocations: 150.6 kB / 371.5 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.163/0.3115, allocations: 0.6359 MB / 372.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002381/0.3117, allocations: 77.84 kB / 372.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003145/0.3121, allocations: 98.64 kB / 372.3 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002369/0.3144, allocations: 1.014 MB / 373.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.695e-05/0.3145, allocations: 5.328 kB / 373.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.3146, allocations: 43.55 kB / 373.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.797e-05/0.3147, allocations: 23.25 kB / 373.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002159/0.3168, allocations: 0.9136 MB / 374.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004743/0.3216, allocations: 3.342 MB / 377.6 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.3229, allocations: 0.8449 MB / 378.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.388e-05/0.323, allocations: 13.12 kB / 378.5 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.323, allocations: 42.94 kB / 378.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.915e-06/0.323, allocations: 0.9688 kB / 378.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008636/0.3316, allocations: 4.436 MB / 382.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.3317, allocations: 88.73 kB / 383 MB, free: 13.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007062/0.3324, allocations: 0.6004 MB / 383.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.234e-05/0.3325, allocations: 45.55 kB / 383.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.3327, allocations: 425.8 kB / 384.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/0.3329, allocations: 395.1 kB / 384.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.584e-05/0.3329, allocations: 21.06 kB / 384.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3331, allocations: 395.8 kB / 384.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007993/0.3339, allocations: 403.3 kB / 385.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008694/0.3347, allocations: 0.5252 MB / 385.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008315/0.3356, allocations: 445.2 kB / 386.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.3356, allocations: 5.984 kB / 386.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002156/0.3378, allocations: 1.226 MB / 387.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3378, allocations: 6.578 kB / 387.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3378, allocations: 2.656 kB / 387.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003489/0.3382, allocations: 131.6 kB / 387.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.3393, allocations: 261.6 kB / 387.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002538/0.3418, allocations: 4.559 MB / 392.4 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007027/0.3425, allocations: 60.61 kB / 392.5 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.898e-05/0.3426, allocations: 39.33 kB / 392.5 MB, free: 6.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004293/0.3431, allocations: 278.9 kB / 392.8 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.3432, allocations: 87.91 kB / 392.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/0.3447, allocations: 0.7858 MB / 393.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.3447, allocations: 11.69 kB / 393.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.3448, allocations: 6.516 kB / 393.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.3448, allocations: 9.016 kB / 393.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/0.3487, allocations: 2.708 MB / 396.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.3487, allocations: 2 kB / 396.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008734/0.3496, allocations: 210 kB / 396.6 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000375/0.35, allocations: 160.1 kB / 396.8 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.544e-05/0.35, allocations: 27.33 kB / 396.8 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003036/0.3531, allocations: 5.601 MB / 402.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3531, allocations: 0 / 402.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002949/0.356, allocations: 1.839 MB / 404.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.3563, allocations: 163.8 kB / 404.4 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.3564, allocations: 19.88 kB / 404.4 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/0.357, allocations: 63.45 kB / 404.5 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.3571, allocations: 83.38 kB / 404.5 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.467e-05/0.3572, allocations: 35.7 kB / 404.6 MB, free: 13.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000527/0.3577, allocations: 440.2 kB / 405 MB, free: 13.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3577, allocations: 0 / 405 MB, free: 13.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009537/0.3587, allocations: 258 kB / 405.3 MB, free: 13.21 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001915/0.3589, allocations: 135 kB / 405.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002273/0.3611, allocations: 1.379 MB / 406.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3612, allocations: 64 / 406.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001402/0.3626, allocations: 1.017 MB / 407.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007263/0.3633, allocations: 159.5 kB / 407.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.3671, allocations: 2.647 MB / 410.6 MB, free: 7.891 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006552/0.3677, allocations: 1.04 MB / 411.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005331/0.3683, allocations: 123.6 kB / 411.8 MB, free: 6.695 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.3685, allocations: 75.42 kB / 411.8 MB, free: 6.621 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3685, allocations: 0 / 411.8 MB, free: 6.621 MB / 318.1 MB Notification: Performance of Templates: time 0.01853/0.387, allocations: 10.79 MB / 422.6 MB, free: 11.93 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches