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.0006542/0.0006543, allocations: 94.42 kB / 17.31 MB, free: 5.582 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.0006943/0.0006943, allocations: 179 kB / 18.21 MB, free: 5.191 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.123/1.123, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002034/0.0002034, allocations: 7.938 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07099/0.07121, allocations: 50.41 MB / 352.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005259/0.07649, allocations: 5.838 MB / 358.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00263/0.07914, allocations: 1.803 MB / 360.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006085/0.07977, allocations: 19.94 kB / 360.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004837/0.08027, allocations: 166.9 kB / 360.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007808/0.08106, allocations: 345.5 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005549/0.08162, allocations: 343.6 kB / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.08264, allocations: 1.37 MB / 362.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004878/0.08314, allocations: 439.4 kB / 362.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.08349, allocations: 434.1 kB / 363.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004362/0.08394, allocations: 0.5132 MB / 363.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.375e-05/0.08404, allocations: 60 kB / 363.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.08415, allocations: 60 kB / 363.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.08429, allocations: 203.1 kB / 364 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003875/0.08468, allocations: 0.5614 MB / 364.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009194/0.08561, allocations: 1.457 MB / 366.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.08562, allocations: 0 / 366.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.08563, allocations: 3.938 kB / 366.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.08564, allocations: 0 / 366.1 MB, free: 6.062 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.002152/0.0878, allocations: 1.294 MB / 367.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.08783, allocations: 8.031 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.08799, allocations: 119.5 kB / 367.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008417/0.08884, allocations: 0.6689 MB / 368.2 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.08896, allocations: 82.55 kB / 368.2 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.08909, allocations: 96.38 kB / 368.3 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.09072, allocations: 1.025 MB / 369.4 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.09075, allocations: 7.906 kB / 369.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.683e-05/0.09084, allocations: 44 kB / 369.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.09086, allocations: 24 kB / 369.4 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.09255, allocations: 0.9186 MB / 370.3 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1337/0.2263, allocations: 3.339 MB / 373.7 MB, free: 23.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.2277, allocations: 0.8336 MB / 374.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000857/0.2285, allocations: 490.9 kB / 375 MB, free: 23.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.2286, allocations: 11.95 kB / 375 MB, free: 23.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.2286, allocations: 52.53 kB / 375.1 MB, free: 23.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.735e-06/0.2286, allocations: 0 / 375.1 MB, free: 23.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008229/0.2369, allocations: 4.449 MB / 379.5 MB, free: 20.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.2369, allocations: 93.53 kB / 379.6 MB, free: 20.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007225/0.2376, allocations: 0.6015 MB / 380.2 MB, free: 20.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.38e-05/0.2377, allocations: 46.89 kB / 380.2 MB, free: 20.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.2379, allocations: 429.4 kB / 380.7 MB, free: 20.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.2381, allocations: 390.9 kB / 381 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.2382, allocations: 94.19 kB / 381.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.2384, allocations: 396.4 kB / 381.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007922/0.2392, allocations: 403.8 kB / 381.9 MB, free: 19.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008492/0.24, allocations: 0.5321 MB / 382.5 MB, free: 18.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.2416, allocations: 0.928 MB / 383.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.2416, allocations: 4 kB / 383.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002134/0.2437, allocations: 1.231 MB / 384.6 MB, free: 18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2437, allocations: 17.62 kB / 384.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.2438, allocations: 3.094 kB / 384.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003272/0.2441, allocations: 126.3 kB / 384.8 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009358/0.245, allocations: 261.5 kB / 385 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002358/0.2474, allocations: 4.528 MB / 389.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006072/0.248, allocations: 68.41 kB / 389.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.079e-05/0.2481, allocations: 46.77 kB / 389.7 MB, free: 13.52 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.0003194/0.2484, allocations: 274.4 kB / 389.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.2486, allocations: 87.17 kB / 390 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.2499, allocations: 0.7888 MB / 390.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.25, allocations: 10.97 kB / 390.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.968e-06/0.25, allocations: 8.125 kB / 390.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.25, allocations: 5.25 kB / 390.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003417/0.2534, allocations: 2.701 MB / 393.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2534, allocations: 0 / 393.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007734/0.2542, allocations: 223.8 kB / 393.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003204/0.2545, allocations: 152.2 kB / 393.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-05/0.2546, allocations: 26.62 kB / 393.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002429/0.257, allocations: 5.58 MB / 399.5 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.257, allocations: 4.125 kB / 399.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002523/0.2596, allocations: 1.806 MB / 401.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.2597, allocations: 166 kB / 401.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-05/0.2598, allocations: 23.06 kB / 401.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/0.2603, allocations: 67.98 kB / 401.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.2604, allocations: 79.75 kB / 401.6 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.344e-05/0.2605, allocations: 33.61 kB / 401.7 MB, free: 4.594 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003844/0.2608, allocations: 439.1 kB / 402.1 MB, free: 4.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2609, allocations: 3.938 kB / 402.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006721/0.2615, allocations: 259.7 kB / 402.4 MB, free: 4.297 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.0001215/0.2617, allocations: 139.1 kB / 402.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.2634, allocations: 1.392 MB / 403.9 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2634, allocations: 0 / 403.9 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.2645, allocations: 1.013 MB / 404.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000859/0.2654, allocations: 166.3 kB / 405.1 MB, free: 2.117 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002879/0.2683, allocations: 2.81 MB / 407.9 MB, free: 15.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005471/0.2688, allocations: 1.02 MB / 408.9 MB, free: 14.22 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002602/0.2691, allocations: 83.41 kB / 409 MB, free: 14.14 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2691, allocations: 0 / 409 MB, free: 14.14 MB / 318.1 MB Notification: Performance of Templates: time 0.02456/0.2937, allocations: 28.95 MB / 437.9 MB, free: 1.184 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