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.001531/0.001531, allocations: 105.1 kB / 17.06 MB, free: 6.02 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.001757/0.001757, allocations: 192 kB / 18 MB, free: 5.098 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 51.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2718, allocations: 49.42 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007156/0.279, allocations: 6.316 MB / 407 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003811/0.2828, allocations: 1.846 MB / 408.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009423/0.2838, allocations: 19.94 kB / 408.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000676/0.2846, allocations: 214.1 kB / 409.1 MB, free: 448 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009514/0.2855, allocations: 392.8 kB / 409.5 MB, free: 52 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007735/0.2863, allocations: 375.5 kB / 409.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001456/0.2878, allocations: 1.483 MB / 411.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006426/0.2884, allocations: 0.5013 MB / 411.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005866/0.289, allocations: 0.5411 MB / 412.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006167/0.2896, allocations: 0.5991 MB / 413 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001781/0.2898, allocations: 156 kB / 413.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.2901, allocations: 160 kB / 413.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002217/0.2903, allocations: 307 kB / 413.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005326/0.2908, allocations: 0.6378 MB / 414.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001761/0.2926, allocations: 1.864 MB / 416.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2926, allocations: 0 / 416.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2926, allocations: 0 / 416.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.2926, allocations: 0 / 416.1 MB, free: 9.406 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.002833/0.2955, allocations: 1.468 MB / 417.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.2955, allocations: 11.97 kB / 417.6 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002088/0.2957, allocations: 124.2 kB / 417.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.2969, allocations: 0.685 MB / 418.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.832e-05/0.297, allocations: 70.38 kB / 418.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.2971, allocations: 104.3 kB / 418.5 MB, free: 6.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001801/0.299, allocations: 1.002 MB / 419.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/0.299, allocations: 7.984 kB / 419.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.284e-05/0.2991, allocations: 40 kB / 419.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.2991, allocations: 24 kB / 419.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.301, allocations: 0.864 MB / 420.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004967/0.306, allocations: 3.306 MB / 423.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/0.3081, allocations: 0.8281 MB / 424.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/0.3093, allocations: 463.8 kB / 425.1 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.776e-05/0.3094, allocations: 20.41 kB / 425.1 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.3095, allocations: 51.06 kB / 425.1 MB, free: 96 kB / 334.1 MB Notification: Performance of pre-optimization done (n=91): time 4.018e-06/0.3095, allocations: 0 / 425.1 MB, free: 96 kB / 334.1 MB Notification: Performance of matching and sorting (n=115): time 0.0132/0.3227, allocations: 4.324 MB / 429.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/0.3228, allocations: 93.7 kB / 429.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.324, allocations: 0.593 MB / 430.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.639e-05/0.3241, allocations: 49.64 kB / 430.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000445/0.3246, allocations: 441 kB / 430.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004825/0.3251, allocations: 408.5 kB / 431 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004445/0.3255, allocations: 182.9 kB / 431.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002463/0.3258, allocations: 394.8 kB / 431.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.327, allocations: 386.4 kB / 432 MB, free: 9.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/0.3284, allocations: 0.5042 MB / 432.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002417/0.3309, allocations: 0.881 MB / 433.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.3309, allocations: 7.938 kB / 433.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003383/0.3343, allocations: 1.189 MB / 434.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.3343, allocations: 11.94 kB / 434.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.3344, allocations: 4 kB / 434.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005467/0.3349, allocations: 130.5 kB / 434.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.3364, allocations: 247.6 kB / 434.9 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004343/0.3407, allocations: 4.985 MB / 439.9 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007866/0.3415, allocations: 52.02 kB / 440 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.3416, allocations: 36 kB / 440 MB, free: 464 kB / 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.0004706/0.3421, allocations: 277.6 kB / 440.3 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.3423, allocations: 91.44 kB / 440.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001649/0.344, allocations: 0.7761 MB / 441.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.344, allocations: 16 kB / 441.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.344, allocations: 4 kB / 441.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.344, allocations: 3.984 kB / 441.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006014/0.3501, allocations: 2.648 MB / 443.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.3501, allocations: 4 kB / 443.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.3514, allocations: 199.8 kB / 444 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004511/0.3518, allocations: 163.4 kB / 444.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.493e-05/0.3519, allocations: 27.98 kB / 444.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004415/0.3564, allocations: 5.987 MB / 450.2 MB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3564, allocations: 3.938 kB / 450.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003219/0.3596, allocations: 1.75 MB / 451.9 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.3599, allocations: 168.6 kB / 452.1 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.3601, allocations: 23.95 kB / 452.1 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006397/0.3607, allocations: 51.95 kB / 452.2 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.3609, allocations: 80.39 kB / 452.3 MB, free: 3.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.788e-05/0.361, allocations: 31.98 kB / 452.3 MB, free: 3.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005776/0.3615, allocations: 443.1 kB / 452.7 MB, free: 2.988 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3616, allocations: 0 / 452.7 MB, free: 2.988 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001053/0.3626, allocations: 256 kB / 453 MB, free: 2.738 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.0002213/0.3628, allocations: 149.3 kB / 453.1 MB, free: 2.582 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.3656, allocations: 1.349 MB / 454.5 MB, free: 1.191 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.3656, allocations: 0 / 454.5 MB, free: 1.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.3671, allocations: 0.9979 MB / 455.5 MB, free: 144 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.3682, allocations: 183.5 kB / 455.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004091/0.3723, allocations: 2.179 MB / 457.8 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006807/0.373, allocations: 1.024 MB / 458.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005539/0.3736, allocations: 119.6 kB / 459 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002417/0.3738, allocations: 75.41 kB / 459 MB, free: 12.5 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3738, allocations: 4 kB / 459 MB, free: 12.5 MB / 382.1 MB Notification: Performance of Templates: time 0.02355/0.3974, allocations: 12.15 MB / 471.2 MB, free: 452 kB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins/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