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.001822/0.001822, allocations: 108.5 kB / 17.16 MB, free: 6.344 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.002363/0.002363, allocations: 194.9 kB / 18.08 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.347/2.347, allocations: 222.9 MB / 241.7 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001627, allocations: 43.06 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1501, allocations: 49.46 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.01261/0.1628, allocations: 6.302 MB / 356.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005784/0.1686, allocations: 1.807 MB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001733/0.1704, allocations: 19.94 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.1721, allocations: 174.8 kB / 358.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00241/0.1746, allocations: 345.5 kB / 358.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001709/0.1763, allocations: 331.8 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00327/0.1796, allocations: 1.374 MB / 360.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001376/0.181, allocations: 439.3 kB / 360.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001293/0.1823, allocations: 462.1 kB / 361.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.1837, allocations: 0.5483 MB / 361.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004406/0.1842, allocations: 76 kB / 361.9 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005666/0.1847, allocations: 76 kB / 362 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004481/0.1852, allocations: 223 kB / 362.2 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001441/0.1867, allocations: 0.5597 MB / 362.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002219/0.1889, allocations: 1.504 MB / 364.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.1889, allocations: 3.938 kB / 364.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1889, allocations: 0 / 364.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.12e-05/0.189, allocations: 0 / 364.3 MB, free: 6.586 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.005637/0.1947, allocations: 1.446 MB / 365.7 MB, free: 5.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.352e-05/0.1947, allocations: 12.03 kB / 365.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005148/0.1953, allocations: 127.5 kB / 365.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.1973, allocations: 0.6728 MB / 366.5 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.1976, allocations: 74.56 kB / 366.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003036/0.1979, allocations: 96.38 kB / 366.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003463/0.2014, allocations: 1.009 MB / 367.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.508e-05/0.2015, allocations: 7.906 kB / 367.7 MB, free: 3.035 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.2016, allocations: 43.98 kB / 367.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-05/0.2017, allocations: 24 kB / 367.8 MB, free: 2.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003337/0.205, allocations: 0.8679 MB / 368.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.282/0.4871, allocations: 3.315 MB / 371.9 MB, free: 24.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002658/0.4898, allocations: 0.805 MB / 372.8 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.4914, allocations: 473.7 kB / 373.2 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.4916, allocations: 22.62 kB / 373.2 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.269e-05/0.4916, allocations: 42.75 kB / 373.3 MB, free: 23.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 4.749e-06/0.4916, allocations: 2.719 kB / 373.3 MB, free: 23.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.01593/0.5076, allocations: 4.302 MB / 377.6 MB, free: 21.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.5077, allocations: 89.39 kB / 377.7 MB, free: 21.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001593/0.5093, allocations: 0.6036 MB / 378.3 MB, free: 21.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.5094, allocations: 41.89 kB / 378.3 MB, free: 21.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004243/0.5099, allocations: 428.1 kB / 378.7 MB, free: 20.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004903/0.5104, allocations: 390.2 kB / 379.1 MB, free: 20.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005541/0.5109, allocations: 187 kB / 379.3 MB, free: 20.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00027/0.5112, allocations: 394.5 kB / 379.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.5128, allocations: 384.2 kB / 380.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001728/0.5145, allocations: 0.5097 MB / 380.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002941/0.5175, allocations: 0.8893 MB / 381.5 MB, free: 19.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.5175, allocations: 4 kB / 381.5 MB, free: 19.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004316/0.5219, allocations: 1.181 MB / 382.6 MB, free: 18.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.999e-05/0.5219, allocations: 6.75 kB / 382.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.522, allocations: 2.312 kB / 382.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006951/0.5227, allocations: 134.2 kB / 382.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001804/0.5245, allocations: 255 kB / 383 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004701/0.5292, allocations: 4.519 MB / 387.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.5307, allocations: 49.38 kB / 387.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.531, allocations: 42.78 kB / 387.6 MB, free: 14.27 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.00088/0.5319, allocations: 284 kB / 387.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004663/0.5324, allocations: 95.11 kB / 388 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002769/0.5351, allocations: 0.7672 MB / 388.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/0.5352, allocations: 14.66 kB / 388.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.402e-05/0.5352, allocations: 4.062 kB / 388.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.688e-05/0.5353, allocations: 9.953 kB / 388.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007428/0.5427, allocations: 2.658 MB / 391.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.5428, allocations: 1.344 kB / 391.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/0.5443, allocations: 206 kB / 391.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007753/0.5451, allocations: 156.1 kB / 391.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001459/0.5453, allocations: 28.31 kB / 391.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004689/0.55, allocations: 5.576 MB / 397.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.55, allocations: 0 / 397.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005165/0.5552, allocations: 1.738 MB / 399.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000464/0.5557, allocations: 166.1 kB / 399.3 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/0.556, allocations: 22.72 kB / 399.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.5572, allocations: 55.83 kB / 399.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/0.5575, allocations: 83.44 kB / 399.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.5576, allocations: 32.48 kB / 399.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009947/0.5586, allocations: 442.5 kB / 399.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5586, allocations: 0 / 399.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001657/0.5603, allocations: 256.1 kB / 400.2 MB, free: 5.168 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.0002588/0.5605, allocations: 143.7 kB / 400.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00313/0.5637, allocations: 1.332 MB / 401.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.5637, allocations: 0.625 kB / 401.7 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.5655, allocations: 1.003 MB / 402.7 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/0.5672, allocations: 177.4 kB / 402.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.573, allocations: 2.633 MB / 405.5 MB, free: 1.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006552/0.5737, allocations: 1.024 MB / 406.5 MB, free: 160 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000522/0.5742, allocations: 91.39 kB / 406.6 MB, free: 68 kB / 302.1 MB Notification: Performance of SimCode: time 1.353e-06/0.5743, allocations: 0 / 406.6 MB, free: 68 kB / 302.1 MB Notification: Performance of Templates: time 0.05172/0.626, allocations: 29.09 MB / 435.7 MB, free: 2.98 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