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.001465/0.001465, allocations: 110.5 kB / 16.62 MB, free: 6.961 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.001491/0.001491, allocations: 190 kB / 17.54 MB, free: 6.066 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.333/1.333, allocations: 222.9 MB / 241.2 MB, free: 15.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 48.02 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08435/0.08541, allocations: 49.44 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.00722/0.09267, allocations: 6.298 MB / 355.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003026/0.09573, allocations: 1.811 MB / 357.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004895/0.09624, allocations: 19.94 kB / 357.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005449/0.09686, allocations: 182.8 kB / 357.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007634/0.09764, allocations: 341.5 kB / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006226/0.09827, allocations: 335.7 kB / 358.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.09953, allocations: 1.483 MB / 360 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000593/0.1001, allocations: 0.5015 MB / 360.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005282/0.1007, allocations: 0.5411 MB / 361.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005248/0.1012, allocations: 0.5952 MB / 361.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001619/0.1014, allocations: 160 kB / 361.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.1016, allocations: 164 kB / 362 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.1018, allocations: 299 kB / 362.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004838/0.1023, allocations: 0.6456 MB / 362.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.1036, allocations: 1.834 MB / 364.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1036, allocations: 0 / 364.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1036, allocations: 0 / 364.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.1036, allocations: 0 / 364.7 MB, free: 5.488 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.0027/0.1063, allocations: 1.453 MB / 366.2 MB, free: 3.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1064, allocations: 8.031 kB / 366.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.1066, allocations: 119.5 kB / 366.3 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009899/0.1076, allocations: 0.6689 MB / 367 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.1077, allocations: 78.55 kB / 367.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.1079, allocations: 96.38 kB / 367.2 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001855/0.1097, allocations: 1.009 MB / 368.2 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.488e-05/0.1098, allocations: 11.91 kB / 368.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.763e-05/0.1099, allocations: 36 kB / 368.2 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.059e-05/0.1099, allocations: 24 kB / 368.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.1117, allocations: 0.8718 MB / 369.1 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1692/0.281, allocations: 3.321 MB / 372.4 MB, free: 23.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.2824, allocations: 0.8186 MB / 373.3 MB, free: 23.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000876/0.2833, allocations: 476 kB / 373.7 MB, free: 23.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.209e-05/0.2833, allocations: 13.8 kB / 373.7 MB, free: 23.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.2834, allocations: 49.08 kB / 373.8 MB, free: 23.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.926e-06/0.2834, allocations: 0 / 373.8 MB, free: 23.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008813/0.2922, allocations: 4.298 MB / 378.1 MB, free: 21.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.2923, allocations: 89.17 kB / 378.2 MB, free: 20.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007455/0.293, allocations: 0.6011 MB / 378.8 MB, free: 20.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.2931, allocations: 53.17 kB / 378.8 MB, free: 20.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.2933, allocations: 424 kB / 379.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002503/0.2936, allocations: 397.9 kB / 379.6 MB, free: 20 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002551/0.2938, allocations: 180.8 kB / 379.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.2939, allocations: 397.2 kB / 380.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008006/0.2947, allocations: 383.8 kB / 380.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008738/0.2956, allocations: 0.5085 MB / 381.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.2972, allocations: 0.8853 MB / 382 MB, free: 18.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.2972, allocations: 1.094 kB / 382 MB, free: 18.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002218/0.2994, allocations: 1.181 MB / 383.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.2995, allocations: 12.84 kB / 383.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2995, allocations: 7.469 kB / 383.2 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003811/0.2999, allocations: 134 kB / 383.3 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.3009, allocations: 249.2 kB / 383.5 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002794/0.3037, allocations: 4.974 MB / 388.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007006/0.3045, allocations: 49.44 kB / 388.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-05/0.3045, allocations: 41.83 kB / 388.6 MB, free: 13.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.0004043/0.3049, allocations: 279.8 kB / 388.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/0.3051, allocations: 94.78 kB / 389 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/0.3067, allocations: 0.7663 MB / 389.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.3067, allocations: 11.36 kB / 389.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.042e-05/0.3067, allocations: 8.156 kB / 389.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.3067, allocations: 12.61 kB / 389.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004129/0.3109, allocations: 2.653 MB / 392.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.3109, allocations: 5.094 kB / 392.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008927/0.3118, allocations: 207.3 kB / 392.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003755/0.3122, allocations: 157.2 kB / 392.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.764e-05/0.3122, allocations: 27.25 kB / 392.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002761/0.315, allocations: 5.989 MB / 398.8 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.315, allocations: 5.812 kB / 398.8 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002754/0.3178, allocations: 1.732 MB / 400.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.3179, allocations: 166 kB / 400.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.3181, allocations: 34.16 kB / 400.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005971/0.3187, allocations: 51.89 kB / 400.8 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.3188, allocations: 79.64 kB / 400.9 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-05/0.3189, allocations: 33.39 kB / 400.9 MB, free: 3.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004987/0.3194, allocations: 446.6 kB / 401.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3194, allocations: 0 / 401.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008853/0.3203, allocations: 258.1 kB / 401.6 MB, free: 3.582 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.0001449/0.3204, allocations: 137.7 kB / 401.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.3229, allocations: 1.385 MB / 403.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3229, allocations: 0 / 403.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.3241, allocations: 1.002 MB / 404.1 MB, free: 1.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009449/0.3251, allocations: 185.9 kB / 404.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/0.3284, allocations: 2.611 MB / 406.9 MB, free: 15.19 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005532/0.329, allocations: 1.02 MB / 407.9 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005482/0.3295, allocations: 115.6 kB / 408 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.3298, allocations: 83.41 kB / 408.1 MB, free: 13.95 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3298, allocations: 0 / 408.1 MB, free: 13.95 MB / 318.1 MB Notification: Performance of Templates: time 0.01945/0.3492, allocations: 11.76 MB / 419.9 MB, free: 2.285 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 -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