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.001284/0.001284, allocations: 100.5 kB / 17.73 MB, free: 5.324 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.001363/0.001363, allocations: 190.9 kB / 18.67 MB, free: 4.395 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.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000957/0.000957, allocations: 43.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2711, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006817/0.278, allocations: 6.303 MB / 407.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003276/0.2813, allocations: 1.842 MB / 409.5 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000556/0.2819, allocations: 19.94 kB / 409.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005256/0.2824, allocations: 214.1 kB / 409.8 MB, free: 492 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008033/0.2833, allocations: 396.8 kB / 410.2 MB, free: 92 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006344/0.2839, allocations: 375.5 kB / 410.5 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001394/0.2853, allocations: 1.487 MB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006371/0.286, allocations: 0.509 MB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005294/0.2865, allocations: 0.545 MB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005944/0.2871, allocations: 0.5991 MB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001774/0.2873, allocations: 156 kB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.2875, allocations: 160 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002025/0.2877, allocations: 307 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004869/0.2882, allocations: 0.6417 MB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001473/0.2897, allocations: 1.851 MB / 416.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2897, allocations: 0 / 416.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2897, allocations: 4 kB / 416.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.748e-05/0.2897, allocations: 0 / 416.8 MB, free: 9.441 MB / 334.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.002738/0.2925, allocations: 1.438 MB / 418.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.2925, allocations: 12.03 kB / 418.2 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.2927, allocations: 119.5 kB / 418.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.2938, allocations: 0.6805 MB / 419 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.083e-05/0.2939, allocations: 74.38 kB / 419.1 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.294, allocations: 100.3 kB / 419.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/0.2959, allocations: 1.013 MB / 420.2 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.2959, allocations: 0 / 420.2 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.85e-05/0.296, allocations: 40 kB / 420.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.376e-05/0.296, allocations: 24 kB / 420.3 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.2978, allocations: 0.8601 MB / 421.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004749/0.3026, allocations: 3.305 MB / 424.4 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.304, allocations: 0.8089 MB / 425.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000868/0.3049, allocations: 486.2 kB / 425.7 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.887e-05/0.3049, allocations: 12.42 kB / 425.7 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.305, allocations: 43.12 kB / 425.8 MB, free: 184 kB / 334.1 MB Notification: Performance of pre-optimization done (n=91): time 2.564e-06/0.305, allocations: 0 / 425.8 MB, free: 184 kB / 334.1 MB Notification: Performance of matching and sorting (n=115): time 0.009432/0.3144, allocations: 4.293 MB / 430.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.3145, allocations: 105.6 kB / 430.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007586/0.3153, allocations: 0.6007 MB / 430.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.613e-05/0.3154, allocations: 49.64 kB / 430.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.3157, allocations: 416.2 kB / 431.2 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.316, allocations: 398.2 kB / 431.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002792/0.3162, allocations: 182.9 kB / 431.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3164, allocations: 390.7 kB / 432.2 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008113/0.3172, allocations: 382.4 kB / 432.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009115/0.3181, allocations: 0.512 MB / 433.1 MB, free: 8.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.3198, allocations: 0.8809 MB / 433.9 MB, free: 7.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3198, allocations: 0 / 433.9 MB, free: 7.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002359/0.3222, allocations: 1.188 MB / 435.1 MB, free: 6.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3222, allocations: 4 kB / 435.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.3223, allocations: 4 kB / 435.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003918/0.3227, allocations: 138.4 kB / 435.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.3237, allocations: 247.7 kB / 435.5 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003855/0.3276, allocations: 4.973 MB / 440.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007287/0.3283, allocations: 48.02 kB / 440.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.298e-05/0.3284, allocations: 43.98 kB / 440.6 MB, free: 0.5938 MB / 350.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.0004587/0.3289, allocations: 283 kB / 440.9 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.3291, allocations: 86.97 kB / 440.9 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001579/0.3306, allocations: 0.7722 MB / 441.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3307, allocations: 8 kB / 441.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.3307, allocations: 4 kB / 441.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.3307, allocations: 11.97 kB / 441.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003998/0.3347, allocations: 2.644 MB / 444.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.3347, allocations: 0 / 444.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009132/0.3356, allocations: 211.7 kB / 444.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004174/0.3361, allocations: 155.3 kB / 444.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-05/0.3362, allocations: 32.05 kB / 444.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004178/0.3403, allocations: 5.986 MB / 450.8 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3404, allocations: 3.938 kB / 450.8 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003162/0.3435, allocations: 1.742 MB / 452.5 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000208/0.3437, allocations: 160.1 kB / 452.7 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.3439, allocations: 27.98 kB / 452.7 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006009/0.3445, allocations: 47.97 kB / 452.7 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.3446, allocations: 76.45 kB / 452.8 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.996e-05/0.3447, allocations: 35.98 kB / 452.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005438/0.3453, allocations: 439 kB / 453.3 MB, free: 3.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.934e-06/0.3453, allocations: 0 / 453.3 MB, free: 3.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008962/0.3462, allocations: 263.9 kB / 453.5 MB, free: 2.895 MB / 366.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.0001897/0.3464, allocations: 141.2 kB / 453.7 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002347/0.3487, allocations: 1.345 MB / 455 MB, free: 1.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3487, allocations: 8.188 kB / 455 MB, free: 1.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.3502, allocations: 0.9938 MB / 456 MB, free: 312 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009884/0.3512, allocations: 184.8 kB / 456.2 MB, free: 136 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003837/0.355, allocations: 2.172 MB / 458.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006264/0.3557, allocations: 1.024 MB / 459.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.356, allocations: 87.39 kB / 459.5 MB, free: 12.78 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.356, allocations: 3.938 kB / 459.5 MB, free: 12.77 MB / 382.1 MB Notification: Performance of Templates: time 0.0316/0.3876, allocations: 29.22 MB / 488.7 MB, free: 15.55 MB / 414.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