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.001209/0.001209, allocations: 111.2 kB / 17.28 MB, free: 6.199 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.001269/0.001269, allocations: 197.3 kB / 18.21 MB, free: 5.273 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.326/1.326, allocations: 222.9 MB / 241.9 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 54.39 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08924/0.09026, allocations: 49.45 MB / 350.2 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007684/0.09798, allocations: 6.294 MB / 356.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003517/0.1015, allocations: 1.811 MB / 358.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005853/0.1022, allocations: 19.94 kB / 358.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006509/0.1029, allocations: 174.8 kB / 358.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.1039, allocations: 345.5 kB / 358.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007029/0.1046, allocations: 339.6 kB / 359.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.1061, allocations: 1.472 MB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006889/0.1068, allocations: 0.5054 MB / 361.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006441/0.1075, allocations: 0.5411 MB / 361.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005958/0.1081, allocations: 0.5952 MB / 362.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.1083, allocations: 164 kB / 362.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001913/0.1085, allocations: 159.9 kB / 362.6 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002139/0.1087, allocations: 303 kB / 362.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005589/0.1093, allocations: 0.6418 MB / 363.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.1106, allocations: 1.52 MB / 365.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1106, allocations: 0 / 365.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1106, allocations: 0 / 365.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.733e-05/0.1106, allocations: 0 / 365.1 MB, free: 5.57 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.002891/0.1135, allocations: 1.453 MB / 366.6 MB, free: 4.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1136, allocations: 8.031 kB / 366.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.1138, allocations: 119.5 kB / 366.7 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009828/0.1147, allocations: 0.6611 MB / 367.3 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.1149, allocations: 78.56 kB / 367.4 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.115, allocations: 96.36 kB / 367.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.1168, allocations: 1.013 MB / 368.5 MB, free: 2.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.46e-05/0.1169, allocations: 7.891 kB / 368.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.079e-05/0.1169, allocations: 40 kB / 368.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.117, allocations: 24 kB / 368.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.1188, allocations: 0.8717 MB / 369.5 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.168/0.2868, allocations: 3.323 MB / 372.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.2882, allocations: 0.8116 MB / 373.6 MB, free: 23.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008616/0.2891, allocations: 474.6 kB / 374.1 MB, free: 23.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.498e-05/0.2892, allocations: 15.44 kB / 374.1 MB, free: 23.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.2892, allocations: 44.69 kB / 374.1 MB, free: 23.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.817e-06/0.2892, allocations: 6.875 kB / 374.1 MB, free: 23.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008815/0.298, allocations: 4.299 MB / 378.4 MB, free: 20.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.2981, allocations: 89.52 kB / 378.5 MB, free: 20.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008191/0.2989, allocations: 0.605 MB / 379.1 MB, free: 20.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.895e-05/0.299, allocations: 41.73 kB / 379.2 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002258/0.2992, allocations: 438.5 kB / 379.6 MB, free: 20.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.2995, allocations: 389.5 kB / 380 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.2998, allocations: 186 kB / 380.1 MB, free: 19.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.2999, allocations: 392.1 kB / 380.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008046/0.3007, allocations: 384.4 kB / 380.9 MB, free: 19.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008572/0.3016, allocations: 0.5102 MB / 381.4 MB, free: 18.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.3031, allocations: 0.8855 MB / 382.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3031, allocations: 0 / 382.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002243/0.3053, allocations: 1.189 MB / 383.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3054, allocations: 6.438 kB / 383.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3054, allocations: 3.281 kB / 383.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003796/0.3058, allocations: 136.6 kB / 383.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.3068, allocations: 248.2 kB / 383.9 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.3096, allocations: 4.969 MB / 388.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000729/0.3104, allocations: 53.58 kB / 388.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.369e-05/0.3104, allocations: 38.64 kB / 388.9 MB, free: 13.04 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.000408/0.3109, allocations: 287.4 kB / 389.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.311, allocations: 92.34 kB / 389.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001539/0.3126, allocations: 0.7694 MB / 390.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.3126, allocations: 19.92 kB / 390.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.3126, allocations: 2.812 kB / 390.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.3126, allocations: 6.156 kB / 390.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004087/0.3167, allocations: 2.65 MB / 392.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3167, allocations: 1.219 kB / 392.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008657/0.3176, allocations: 206.2 kB / 393 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003961/0.318, allocations: 156.2 kB / 393.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.204e-05/0.3181, allocations: 26.08 kB / 393.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002783/0.3209, allocations: 5.999 MB / 399.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3209, allocations: 5.062 kB / 399.1 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002734/0.3236, allocations: 1.741 MB / 400.9 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.3238, allocations: 161.4 kB / 401 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.324, allocations: 27.12 kB / 401.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000585/0.3246, allocations: 51.77 kB / 401.1 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.3247, allocations: 78.59 kB / 401.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.209e-05/0.3248, allocations: 34.08 kB / 401.2 MB, free: 3.719 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005119/0.3253, allocations: 446.6 kB / 401.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3253, allocations: 0 / 401.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008997/0.3262, allocations: 258.2 kB / 401.9 MB, free: 3.422 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.0001622/0.3264, allocations: 143 kB / 402.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002435/0.3288, allocations: 1.386 MB / 403.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3288, allocations: 0 / 403.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.33, allocations: 1.004 MB / 404.4 MB, free: 1.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009374/0.331, allocations: 179.2 kB / 404.6 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003335/0.3343, allocations: 2.633 MB / 407.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.3349, allocations: 1.027 MB / 408.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002982/0.3352, allocations: 91.39 kB / 408.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3352, allocations: 0 / 408.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of Templates: time 0.02848/0.3637, allocations: 29.09 MB / 437.5 MB, free: 0.9961 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