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.0007826/0.0007826, allocations: 89.45 kB / 16.65 MB, free: 6.535 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.0008171/0.0008173, allocations: 177.9 kB / 17.56 MB, free: 6.18 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.291/1.291, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002915, allocations: 15.94 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09748, allocations: 50.41 MB / 351.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006271/0.1038, allocations: 5.842 MB / 357.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003978/0.1078, allocations: 1.807 MB / 359.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000704/0.1085, allocations: 19.94 kB / 359.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005619/0.1091, allocations: 166.9 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009859/0.1101, allocations: 345.5 kB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007216/0.1108, allocations: 331.7 kB / 360.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001565/0.1124, allocations: 1.37 MB / 361.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006732/0.1131, allocations: 439.4 kB / 362.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005308/0.1136, allocations: 438.1 kB / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005904/0.1142, allocations: 0.5014 MB / 363.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.1144, allocations: 64 kB / 363.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.1145, allocations: 64 kB / 363.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.1147, allocations: 195.1 kB / 363.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004961/0.1152, allocations: 0.5614 MB / 363.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001543/0.1167, allocations: 1.724 MB / 365.7 MB, free: 5.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1167, allocations: 3.984 kB / 365.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1167, allocations: 0 / 365.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.248e-05/0.1168, allocations: 0 / 365.7 MB, free: 5.801 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.002945/0.1197, allocations: 1.29 MB / 366.9 MB, free: 4.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1198, allocations: 8.031 kB / 367 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.12, allocations: 119.5 kB / 367.1 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.1212, allocations: 0.6689 MB / 367.7 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.1214, allocations: 78.56 kB / 367.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.1215, allocations: 96.36 kB / 367.9 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/0.1237, allocations: 1.029 MB / 368.9 MB, free: 2.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/0.1237, allocations: 7.906 kB / 368.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.114e-05/0.1238, allocations: 40 kB / 369 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.1238, allocations: 27.94 kB / 369 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002071/0.1259, allocations: 0.9186 MB / 369.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1766/0.3025, allocations: 3.343 MB / 373.3 MB, free: 22.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.3042, allocations: 0.8363 MB / 374.1 MB, free: 22.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.3052, allocations: 493.3 kB / 374.6 MB, free: 22.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.927e-05/0.3053, allocations: 17.59 kB / 374.6 MB, free: 22.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.3053, allocations: 48.25 kB / 374.7 MB, free: 22.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.936e-06/0.3053, allocations: 0 / 374.7 MB, free: 22.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.01018/0.3155, allocations: 4.452 MB / 379.1 MB, free: 20.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.3156, allocations: 89.95 kB / 379.2 MB, free: 20.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008642/0.3165, allocations: 0.6022 MB / 379.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.033e-05/0.3166, allocations: 45.64 kB / 379.8 MB, free: 20 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/0.3168, allocations: 432.2 kB / 380.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002801/0.3171, allocations: 391.8 kB / 380.7 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.3173, allocations: 90.86 kB / 380.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3174, allocations: 393.2 kB / 381.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008937/0.3183, allocations: 407.4 kB / 381.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009521/0.3193, allocations: 0.5329 MB / 382.1 MB, free: 18.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.321, allocations: 0.9259 MB / 383 MB, free: 18.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.321, allocations: 1.188 kB / 383 MB, free: 18.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002572/0.3236, allocations: 1.236 MB / 384.2 MB, free: 17.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.3237, allocations: 6.562 kB / 384.2 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.3237, allocations: 3.125 kB / 384.2 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004163/0.3241, allocations: 134.7 kB / 384.4 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.3252, allocations: 264.1 kB / 384.6 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/0.3279, allocations: 4.527 MB / 389.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008362/0.3288, allocations: 64.7 kB / 389.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-05/0.3289, allocations: 42.98 kB / 389.2 MB, free: 13.09 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.0005022/0.3294, allocations: 273.5 kB / 389.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.3296, allocations: 91.5 kB / 389.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/0.3312, allocations: 0.7883 MB / 390.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.3312, allocations: 11.88 kB / 390.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.3312, allocations: 3.406 kB / 390.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.3312, allocations: 5.953 kB / 390.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004158/0.3354, allocations: 2.717 MB / 393.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3354, allocations: 1.453 kB / 393.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008822/0.3363, allocations: 211.7 kB / 393.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004332/0.3368, allocations: 158 kB / 393.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.381e-05/0.3368, allocations: 26.97 kB / 393.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002879/0.3397, allocations: 5.581 MB / 399.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3398, allocations: 1.375 kB / 399.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00314/0.3429, allocations: 1.8 MB / 400.9 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000249/0.3432, allocations: 177.5 kB / 401.1 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.3433, allocations: 22.97 kB / 401.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005922/0.3439, allocations: 59.86 kB / 401.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.344, allocations: 83.78 kB / 401.2 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.215e-05/0.3441, allocations: 41.17 kB / 401.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005033/0.3446, allocations: 441.4 kB / 401.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3446, allocations: 0 / 401.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009929/0.3456, allocations: 256 kB / 402 MB, free: 3.875 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.0001697/0.3458, allocations: 138.3 kB / 402.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.3483, allocations: 1.378 MB / 403.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3483, allocations: 3.938 kB / 403.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.3497, allocations: 1.022 MB / 404.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.3508, allocations: 166 kB / 404.7 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.3544, allocations: 2.759 MB / 407.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005664/0.355, allocations: 1.027 MB / 408.4 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005992/0.3556, allocations: 119.6 kB / 408.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.3558, allocations: 71.41 kB / 408.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3558, allocations: 7.938 kB / 408.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of Templates: time 0.02189/0.3777, allocations: 11.13 MB / 419.8 MB, free: 2.727 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins/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