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.001086/0.001086, allocations: 112.5 kB / 17.7 MB, free: 5.426 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.001177/0.001177, allocations: 183 kB / 18.62 MB, free: 4.5 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.312/1.312, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009955/0.000996, allocations: 45.11 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08882/0.08983, allocations: 49.46 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007222/0.09708, allocations: 6.295 MB / 357.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003175/0.1003, allocations: 1.842 MB / 359.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/0.1007, allocations: 19.94 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005657/0.1013, allocations: 210.1 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007606/0.1021, allocations: 396.8 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006285/0.1027, allocations: 387.5 kB / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001295/0.104, allocations: 1.479 MB / 362.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006241/0.1047, allocations: 0.5052 MB / 362.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005109/0.1052, allocations: 0.5334 MB / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005828/0.1058, allocations: 0.5951 MB / 363.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001702/0.106, allocations: 160 kB / 363.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.1061, allocations: 164 kB / 364.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.1064, allocations: 299.1 kB / 364.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005156/0.1069, allocations: 0.6495 MB / 365 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.1082, allocations: 1.85 MB / 366.9 MB, free: 4.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1083, allocations: 0 / 366.9 MB, free: 4.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1083, allocations: 0 / 366.9 MB, free: 4.242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.999e-05/0.1083, allocations: 0 / 366.9 MB, free: 4.242 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.002592/0.1109, allocations: 1.445 MB / 368.3 MB, free: 2.742 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.1109, allocations: 11.89 kB / 368.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.1111, allocations: 123.5 kB / 368.4 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.1122, allocations: 0.6728 MB / 369.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-05/0.1123, allocations: 74.38 kB / 369.2 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.1125, allocations: 100.4 kB / 369.3 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001723/0.1142, allocations: 1.006 MB / 370.3 MB, free: 0.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.1142, allocations: 3.906 kB / 370.3 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.026e-05/0.1143, allocations: 40 kB / 370.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.1144, allocations: 24 kB / 370.4 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1542/0.2686, allocations: 0.8636 MB / 371.2 MB, free: 24.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005423/0.2741, allocations: 3.301 MB / 374.5 MB, free: 23.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.2756, allocations: 0.8084 MB / 375.3 MB, free: 23.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008119/0.2764, allocations: 475.5 kB / 375.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.675e-05/0.2765, allocations: 12 kB / 375.8 MB, free: 22.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.2765, allocations: 40.19 kB / 375.8 MB, free: 22.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.755e-06/0.2765, allocations: 6.469 kB / 375.8 MB, free: 22.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008253/0.2848, allocations: 4.307 MB / 380.2 MB, free: 20.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.2848, allocations: 89.33 kB / 380.2 MB, free: 20.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006745/0.2855, allocations: 0.5988 MB / 380.8 MB, free: 20.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.059e-05/0.2856, allocations: 42.02 kB / 380.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/0.2858, allocations: 429.9 kB / 381.3 MB, free: 19.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.286, allocations: 394.6 kB / 381.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00026/0.2863, allocations: 185.4 kB / 381.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.2864, allocations: 396.8 kB / 382.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007586/0.2872, allocations: 379.2 kB / 382.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008172/0.288, allocations: 0.511 MB / 383.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.2895, allocations: 0.8863 MB / 384 MB, free: 18.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2895, allocations: 0 / 384 MB, free: 18.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002225/0.2918, allocations: 1.192 MB / 385.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.2918, allocations: 5.094 kB / 385.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.2918, allocations: 3.188 kB / 385.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003932/0.2922, allocations: 130.3 kB / 385.4 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.2933, allocations: 251.2 kB / 385.6 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002724/0.296, allocations: 4.97 MB / 390.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007134/0.2967, allocations: 56.59 kB / 390.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.931e-05/0.2968, allocations: 37.8 kB / 390.7 MB, free: 12.75 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.0004013/0.2972, allocations: 280.8 kB / 390.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.2974, allocations: 88.38 kB / 391 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/0.2988, allocations: 0.766 MB / 391.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.2988, allocations: 19.38 kB / 391.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.2988, allocations: 5.016 kB / 391.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.2989, allocations: 6.406 kB / 391.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.3024, allocations: 2.656 MB / 394.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3024, allocations: 0 / 394.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008295/0.3033, allocations: 199.1 kB / 394.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003814/0.3037, allocations: 159.6 kB / 394.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.974e-05/0.3037, allocations: 27.58 kB / 394.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/0.3066, allocations: 5.997 MB / 400.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3066, allocations: 1.375 kB / 400.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002765/0.3094, allocations: 1.735 MB / 402.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.3096, allocations: 175.5 kB / 402.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.3097, allocations: 23.59 kB / 402.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005567/0.3103, allocations: 51.77 kB / 402.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.3104, allocations: 76.55 kB / 402.9 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.176e-05/0.3105, allocations: 29.42 kB / 402.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004405/0.3109, allocations: 440.7 kB / 403.4 MB, free: 2.777 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3109, allocations: 0 / 403.4 MB, free: 2.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008695/0.3118, allocations: 255.3 kB / 403.6 MB, free: 2.742 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.0001378/0.312, allocations: 141.2 kB / 403.7 MB, free: 2.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.3139, allocations: 1.346 MB / 405.1 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3139, allocations: 0 / 405.1 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.315, allocations: 1.001 MB / 406.1 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008582/0.3158, allocations: 184.8 kB / 406.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.3191, allocations: 2.157 MB / 408.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/0.3197, allocations: 1.02 MB / 409.5 MB, free: 13.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000484/0.3202, allocations: 119.6 kB / 409.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.3204, allocations: 83.34 kB / 409.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3204, allocations: 3.938 kB / 409.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of Templates: time 0.02064/0.3411, allocations: 11.89 MB / 421.5 MB, free: 1.43 MB / 318.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 -s cvode -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