Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.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_3.2.3_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_3.2.3_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.001615/0.001615, allocations: 105.4 kB / 18.4 MB, free: 4.695 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.001566/0.001566, allocations: 183.1 kB / 19.33 MB, free: 3.777 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.494/1.494, allocations: 205.1 MB / 225.2 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.001431/0.001431, allocations: 47.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1041, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.2501/0.3542, allocations: 6.226 MB / 382 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.3577, allocations: 1.885 MB / 383.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006409/0.3584, allocations: 19.06 kB / 383.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006638/0.3591, allocations: 214.2 kB / 384.1 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.3601, allocations: 394.1 kB / 384.5 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008485/0.361, allocations: 379.2 kB / 384.9 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001777/0.3628, allocations: 1.489 MB / 386.4 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006881/0.3635, allocations: 0.5045 MB / 386.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007735/0.3643, allocations: 0.5422 MB / 387.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008997/0.3652, allocations: 0.6021 MB / 388 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003096/0.3655, allocations: 157.6 kB / 388.2 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003498/0.3659, allocations: 160.8 kB / 388.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003002/0.3662, allocations: 295.5 kB / 388.6 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007437/0.3669, allocations: 0.6504 MB / 389.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002652/0.3696, allocations: 1.853 MB / 391.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3696, allocations: 1.781 kB / 391.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3696, allocations: 0 / 391.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.537e-05/0.3697, allocations: 1.125 kB / 391.1 MB, free: 6.027 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.004348/0.374, allocations: 1.444 MB / 392.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.3741, allocations: 9.062 kB / 392.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003155/0.3744, allocations: 123.5 kB / 392.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.376, allocations: 0.6751 MB / 393.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.011e-05/0.3761, allocations: 74.62 kB / 393.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002072/0.3763, allocations: 100.3 kB / 393.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002638/0.379, allocations: 1.009 MB / 394.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.981e-05/0.3791, allocations: 5.984 kB / 394.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.3792, allocations: 39.53 kB / 394.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.057e-05/0.3792, allocations: 23.66 kB / 394.6 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002677/0.3819, allocations: 0.8717 MB / 395.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007134/0.3891, allocations: 3.29 MB / 398.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/0.391, allocations: 0.8111 MB / 399.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009137/0.3919, allocations: 476.4 kB / 400.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.117e-05/0.392, allocations: 20.59 kB / 400.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.392, allocations: 46.62 kB / 400.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 3.727e-06/0.392, allocations: 0 / 400.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=115): time 0.01228/0.4043, allocations: 4.3 MB / 404.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.607e-05/0.4045, allocations: 93.2 kB / 404.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.4061, allocations: 0.6027 MB / 405.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.4063, allocations: 45.92 kB / 405.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004904/0.4068, allocations: 433.8 kB / 405.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005236/0.4073, allocations: 387.6 kB / 406 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005036/0.4078, allocations: 188.7 kB / 406.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003261/0.4082, allocations: 392.7 kB / 406.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.4095, allocations: 386.8 kB / 406.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.4109, allocations: 0.5044 MB / 407.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002609/0.4135, allocations: 0.8864 MB / 408.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.655e-05/0.4136, allocations: 8.906 kB / 408.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00378/0.4173, allocations: 1.187 MB / 409.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.4174, allocations: 5.844 kB / 409.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.4174, allocations: 2.875 kB / 409.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005872/0.418, allocations: 130.2 kB / 409.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.4196, allocations: 250.8 kB / 409.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005653/0.4252, allocations: 4.968 MB / 414.9 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.4266, allocations: 56.97 kB / 414.9 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.4268, allocations: 41.48 kB / 415 MB, free: 5.98 MB / 334.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.0009242/0.4277, allocations: 280.6 kB / 415.2 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004601/0.4282, allocations: 90.16 kB / 415.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002548/0.4307, allocations: 0.7812 MB / 416.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.4308, allocations: 11.97 kB / 416.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-05/0.4308, allocations: 2.688 kB / 416.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-05/0.4309, allocations: 5.297 kB / 416.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007056/0.4379, allocations: 2.65 MB / 418.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.438, allocations: 1.375 kB / 418.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.439, allocations: 200.6 kB / 419 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005161/0.4396, allocations: 160.6 kB / 419.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.589e-05/0.4397, allocations: 28.02 kB / 419.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004957/0.4446, allocations: 5.983 MB / 425.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.4447, allocations: 7.969 kB / 425.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003547/0.4482, allocations: 1.745 MB / 426.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003997/0.4486, allocations: 160.1 kB / 427.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/0.4489, allocations: 24 kB / 427.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007677/0.4497, allocations: 51.95 kB / 427.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.4499, allocations: 72.45 kB / 427.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.648e-05/0.4499, allocations: 31.98 kB / 427.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006868/0.4506, allocations: 439.1 kB / 427.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4506, allocations: 4 kB / 427.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001216/0.4519, allocations: 252 kB / 427.9 MB, free: 9.82 MB / 350.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.0002266/0.4521, allocations: 131.8 kB / 428 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.4548, allocations: 1.357 MB / 429.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4548, allocations: 0 / 429.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001563/0.4564, allocations: 0.9982 MB / 430.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.4576, allocations: 187.4 kB / 430.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004576/0.4622, allocations: 2.18 MB / 432.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008365/0.4631, allocations: 1.02 MB / 433.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003596/0.4635, allocations: 83.41 kB / 433.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4635, allocations: 0 / 433.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of Templates: time 0.03584/0.4993, allocations: 29.22 MB / 463.1 MB, free: 6.414 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches