Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001219/0.00122, allocations: 191 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 45.17 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09654/0.09844, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007435/0.1059, allocations: 6.301 MB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003304/0.1093, allocations: 1.834 MB / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007525/0.11, allocations: 19.94 kB / 359.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006982/0.1108, allocations: 218 kB / 359.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00127/0.1121, allocations: 396.9 kB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008017/0.1129, allocations: 375.5 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001683/0.1146, allocations: 1.487 MB / 362.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006524/0.1152, allocations: 0.5052 MB / 362.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005778/0.1158, allocations: 0.5334 MB / 363.2 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005968/0.1164, allocations: 0.599 MB / 363.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001766/0.1166, allocations: 160 kB / 363.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001858/0.1168, allocations: 160 kB / 364.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002133/0.117, allocations: 303 kB / 364.4 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005256/0.1176, allocations: 0.6456 MB / 365 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001551/0.1191, allocations: 1.853 MB / 366.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1191, allocations: 0 / 366.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1191, allocations: 0 / 366.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.1192, allocations: 0 / 366.9 MB, free: 4.258 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.002755/0.1219, allocations: 1.449 MB / 368.3 MB, free: 2.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.122, allocations: 8.031 kB / 368.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.1222, allocations: 123.5 kB / 368.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.1233, allocations: 0.6728 MB / 369.1 MB, free: 1.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.1233, allocations: 74.38 kB / 369.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.1235, allocations: 96.38 kB / 369.3 MB, free: 1.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001753/0.1253, allocations: 1.009 MB / 370.3 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.997e-05/0.1253, allocations: 3.906 kB / 370.3 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.754e-05/0.1254, allocations: 40 kB / 370.3 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.1254, allocations: 24 kB / 370.4 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1505/0.2759, allocations: 0.862 MB / 371.2 MB, free: 24.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006864/0.2828, allocations: 3.3 MB / 374.5 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.2843, allocations: 0.8179 MB / 375.3 MB, free: 23.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008229/0.2852, allocations: 473.4 kB / 375.8 MB, free: 22.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.444e-05/0.2852, allocations: 15.7 kB / 375.8 MB, free: 22.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.2853, allocations: 40.67 kB / 375.9 MB, free: 22.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.795e-06/0.2853, allocations: 0.5312 kB / 375.9 MB, free: 22.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008493/0.2938, allocations: 4.297 MB / 380.2 MB, free: 20.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.2938, allocations: 94.17 kB / 380.2 MB, free: 20.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000721/0.2946, allocations: 0.6012 MB / 380.8 MB, free: 20.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.2946, allocations: 42.81 kB / 380.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.2948, allocations: 430.7 kB / 381.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/0.2951, allocations: 388.9 kB / 381.7 MB, free: 19.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002714/0.2954, allocations: 185.9 kB / 381.9 MB, free: 19.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.2955, allocations: 396.7 kB / 382.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000772/0.2962, allocations: 380.5 kB / 382.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008526/0.2971, allocations: 0.5092 MB / 383.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.2986, allocations: 0.8865 MB / 384 MB, free: 18.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.2986, allocations: 2.031 kB / 384 MB, free: 18.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002141/0.3008, allocations: 1.187 MB / 385.2 MB, free: 17.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.3008, allocations: 10.34 kB / 385.2 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3008, allocations: 3 kB / 385.2 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003648/0.3012, allocations: 135.3 kB / 385.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009872/0.3022, allocations: 251.2 kB / 385.6 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002786/0.305, allocations: 4.971 MB / 390.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007121/0.3057, allocations: 52.7 kB / 390.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.302e-05/0.3058, allocations: 37.64 kB / 390.7 MB, free: 12.78 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_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.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 (not torn): 0 * Torn equation systems: 3 * 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,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004189/0.3062, allocations: 286.9 kB / 390.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.3064, allocations: 87.47 kB / 391 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/0.3079, allocations: 0.7667 MB / 391.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.017e-05/0.3079, allocations: 15.81 kB / 391.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.308, allocations: 4.953 kB / 391.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.308, allocations: 5.812 kB / 391.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.3116, allocations: 2.644 MB / 394.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3116, allocations: 1.875 kB / 394.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008494/0.3125, allocations: 209 kB / 394.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003707/0.3128, allocations: 159.7 kB / 394.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.764e-05/0.3129, allocations: 27.92 kB / 394.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002879/0.3158, allocations: 5.999 MB / 400.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3158, allocations: 1.281 kB / 400.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002665/0.3185, allocations: 1.737 MB / 402.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.3187, allocations: 170.3 kB / 402.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.3188, allocations: 23.19 kB / 402.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005718/0.3194, allocations: 47.22 kB / 402.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.3195, allocations: 74.7 kB / 402.9 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.181e-05/0.3196, allocations: 39.52 kB / 402.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005551/0.3201, allocations: 440.5 kB / 403.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3201, allocations: 0 / 403.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000978/0.3211, allocations: 256.3 kB / 403.6 MB, free: 2.781 MB / 302.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 (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): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001478/0.3213, allocations: 137.4 kB / 403.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002024/0.3233, allocations: 1.339 MB / 405.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3233, allocations: 0 / 405.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.3245, allocations: 1.005 MB / 406.1 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000874/0.3254, allocations: 188.8 kB / 406.3 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003374/0.3288, allocations: 2.153 MB / 408.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005903/0.3294, allocations: 1.02 MB / 409.5 MB, free: 13.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004823/0.3298, allocations: 123.6 kB / 409.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002258/0.3301, allocations: 75.42 kB / 409.6 MB, free: 13.27 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3301, allocations: 0 / 409.6 MB, free: 13.27 MB / 318.1 MB Notification: Performance of Templates: time 0.01911/0.3492, allocations: 11.9 MB / 421.5 MB, free: 1.48 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches