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.00135/0.00135, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001746/0.001746, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.333/1.333, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 51.05 kB / 301.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09342/0.09466, allocations: 49.44 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007959/0.1027, allocations: 6.299 MB / 357 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003656/0.1064, allocations: 1.842 MB / 358.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009752/0.1074, allocations: 19.94 kB / 358.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000936/0.1084, allocations: 214.1 kB / 359.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001519/0.1099, allocations: 392.8 kB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009893/0.1109, allocations: 375.5 kB / 359.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002048/0.113, allocations: 1.472 MB / 361.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009111/0.1139, allocations: 0.5054 MB / 361.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009217/0.1148, allocations: 0.5373 MB / 362.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.1159, allocations: 0.5991 MB / 363 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003824/0.1163, allocations: 156 kB / 363.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005585/0.1168, allocations: 160 kB / 363.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000416/0.1173, allocations: 307 kB / 363.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000927/0.1182, allocations: 0.6378 MB / 364.2 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001615/0.1198, allocations: 1.846 MB / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1199, allocations: 0 / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1199, allocations: 0 / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.164e-05/0.1199, allocations: 0 / 366.1 MB, free: 4.984 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.003214/0.1231, allocations: 1.449 MB / 367.5 MB, free: 3.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.1232, allocations: 12.03 kB / 367.5 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.1234, allocations: 119.5 kB / 367.6 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.1245, allocations: 0.6689 MB / 368.3 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.1246, allocations: 74.55 kB / 368.4 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.1248, allocations: 104.4 kB / 368.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/0.1266, allocations: 1.005 MB / 369.5 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.523e-05/0.1266, allocations: 7.906 kB / 369.5 MB, free: 1.441 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.314e-05/0.1267, allocations: 40 kB / 369.5 MB, free: 1.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.1268, allocations: 20 kB / 369.6 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/0.1287, allocations: 0.8679 MB / 370.4 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1728/0.3015, allocations: 3.327 MB / 373.7 MB, free: 23.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.3031, allocations: 0.8235 MB / 374.6 MB, free: 23.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.3044, allocations: 472.9 kB / 375 MB, free: 23.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.286e-05/0.3045, allocations: 12.47 kB / 375 MB, free: 23.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.3045, allocations: 48.77 kB / 375.1 MB, free: 23.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 4.107e-06/0.3045, allocations: 0 / 375.1 MB, free: 23.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.01456/0.3191, allocations: 4.292 MB / 379.4 MB, free: 20.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.87e-05/0.3192, allocations: 93.83 kB / 379.5 MB, free: 20.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/0.3207, allocations: 0.6042 MB / 380.1 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.307e-05/0.3209, allocations: 45.39 kB / 380.1 MB, free: 20.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/0.3212, allocations: 422.8 kB / 380.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003529/0.3216, allocations: 391.9 kB / 380.9 MB, free: 19.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004626/0.322, allocations: 182.8 kB / 381.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3222, allocations: 396.2 kB / 381.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.3236, allocations: 383.1 kB / 381.9 MB, free: 19.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.3251, allocations: 0.5134 MB / 382.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002679/0.3278, allocations: 0.8854 MB / 383.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/0.3279, allocations: 0 / 383.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003774/0.3317, allocations: 1.19 MB / 384.4 MB, free: 17.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.3317, allocations: 10.16 kB / 384.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/0.3317, allocations: 4.875 kB / 384.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005944/0.3323, allocations: 134 kB / 384.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.3339, allocations: 248.6 kB / 384.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004312/0.3382, allocations: 4.981 MB / 389.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.3395, allocations: 49.48 kB / 389.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.3396, allocations: 42.39 kB / 389.9 MB, free: 13 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.0007138/0.3404, allocations: 286.6 kB / 390.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003426/0.3407, allocations: 86.72 kB / 390.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002384/0.3431, allocations: 0.7648 MB / 391 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/0.3432, allocations: 15.2 kB / 391.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-05/0.3432, allocations: 7.344 kB / 391.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.587e-05/0.3432, allocations: 6.047 kB / 391.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00675/0.35, allocations: 2.665 MB / 393.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.35, allocations: 3.938 kB / 393.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.3513, allocations: 200.5 kB / 393.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006198/0.3519, allocations: 155.2 kB / 394.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-05/0.3521, allocations: 31.86 kB / 394.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004322/0.3564, allocations: 5.998 MB / 400.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3564, allocations: 1.188 kB / 400.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003828/0.3603, allocations: 1.739 MB / 401.9 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003293/0.3606, allocations: 166.1 kB / 402 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.3608, allocations: 26.75 kB / 402 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008876/0.3617, allocations: 53.8 kB / 402.1 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002446/0.362, allocations: 81.66 kB / 402.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.28e-05/0.3621, allocations: 33.16 kB / 402.2 MB, free: 3.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008771/0.363, allocations: 443.7 kB / 402.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.363, allocations: 0 / 402.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001595/0.3646, allocations: 256.9 kB / 402.9 MB, free: 3.145 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.0002464/0.3648, allocations: 142.8 kB / 403 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.004246/0.3691, allocations: 1.385 MB / 404.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.3691, allocations: 0 / 404.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.371, allocations: 0.996 MB / 405.4 MB, free: 1.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.3729, allocations: 184.2 kB / 405.6 MB, free: 1.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006799/0.3797, allocations: 2.212 MB / 407.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/0.3807, allocations: 1.023 MB / 408.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005117/0.3813, allocations: 83.41 kB / 408.9 MB, free: 13.85 MB / 318.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3813, allocations: 0 / 408.9 MB, free: 13.85 MB / 318.1 MB Notification: Performance of Templates: time 0.04908/0.4304, allocations: 29.11 MB / 438 MB, free: 0.7344 MB / 334.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/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