Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001034/0.001034, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001131/0.001131, allocations: 188.1 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 59.91 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08889/0.0903, allocations: 46.62 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007106/0.09745, allocations: 6.24 MB / 335 MB, free: 13.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003413/0.1009, allocations: 1.863 MB / 336.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004131/0.1014, allocations: 19.94 kB / 336.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005857/0.102, allocations: 226 kB / 337.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007344/0.1027, allocations: 384.9 kB / 337.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006181/0.1033, allocations: 371.5 kB / 337.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.1046, allocations: 1.495 MB / 339.3 MB, free: 9.113 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006198/0.1053, allocations: 0.5052 MB / 339.8 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005115/0.1058, allocations: 0.5333 MB / 340.3 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005921/0.1064, allocations: 0.5952 MB / 340.9 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.1065, allocations: 160 kB / 341.1 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.1067, allocations: 163.9 kB / 341.2 MB, free: 7.141 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002106/0.107, allocations: 295.1 kB / 341.5 MB, free: 6.852 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005045/0.1075, allocations: 0.6495 MB / 342.2 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.1088, allocations: 1.842 MB / 344 MB, free: 4.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1088, allocations: 0 / 344 MB, free: 4.352 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1089, allocations: 4 kB / 344 MB, free: 4.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.1089, allocations: 0 / 344 MB, free: 4.348 MB / 286.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.002831/0.1117, allocations: 1.449 MB / 345.5 MB, free: 2.844 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.1118, allocations: 8.031 kB / 345.5 MB, free: 2.836 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001972/0.112, allocations: 119.5 kB / 345.6 MB, free: 2.719 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.1131, allocations: 0.6806 MB / 346.3 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.297e-05/0.1132, allocations: 82.31 kB / 346.4 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.1133, allocations: 100.3 kB / 346.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.115, allocations: 1.006 MB / 347.5 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.609e-05/0.1151, allocations: 11.91 kB / 347.5 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.744e-05/0.1152, allocations: 36 kB / 347.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.1152, allocations: 20 kB / 347.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.117, allocations: 0.8718 MB / 348.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004641/0.1216, allocations: 3.301 MB / 351.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/0.1231, allocations: 0.8116 MB / 352.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008517/0.1239, allocations: 475.2 kB / 353 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.896e-05/0.124, allocations: 17.14 kB / 353 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.124, allocations: 47.06 kB / 353 MB, free: 11.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.495e-06/0.124, allocations: 0 / 353 MB, free: 11.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009007/0.1331, allocations: 4.301 MB / 357.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.1331, allocations: 93.7 kB / 357.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007233/0.1339, allocations: 0.5968 MB / 358 MB, free: 5.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.534e-05/0.134, allocations: 45.7 kB / 358.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003125/0.1343, allocations: 428.1 kB / 358.5 MB, free: 5.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002811/0.1346, allocations: 390.2 kB / 358.9 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002823/0.1349, allocations: 186.9 kB / 359.1 MB, free: 4.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.135, allocations: 390.7 kB / 359.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007845/0.1358, allocations: 382.4 kB / 359.8 MB, free: 4.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008972/0.1367, allocations: 0.5158 MB / 360.3 MB, free: 3.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.1384, allocations: 0.8809 MB / 361.2 MB, free: 2.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1384, allocations: 0 / 361.2 MB, free: 2.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002245/0.1407, allocations: 1.196 MB / 362.4 MB, free: 1.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1407, allocations: 4 kB / 362.4 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.1407, allocations: 4 kB / 362.4 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003898/0.1411, allocations: 134.5 kB / 362.6 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.1422, allocations: 251.6 kB / 362.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003786/0.146, allocations: 4.965 MB / 367.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000657/0.1466, allocations: 52.03 kB / 367.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-05/0.1467, allocations: 39.98 kB / 367.9 MB, free: 11.48 MB / 318.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.000393/0.1471, allocations: 277.8 kB / 368.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.1473, allocations: 86.97 kB / 368.2 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.1488, allocations: 0.7683 MB / 369 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.1488, allocations: 16 kB / 369 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.1488, allocations: 7.938 kB / 369 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.1489, allocations: 11.97 kB / 369 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00398/0.1528, allocations: 2.644 MB / 371.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1529, allocations: 0 / 371.7 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008797/0.1538, allocations: 211.8 kB / 371.9 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004136/0.1542, allocations: 155.3 kB / 372 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-05/0.1542, allocations: 23.98 kB / 372 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004172/0.1584, allocations: 5.99 MB / 378 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1584, allocations: 3.938 kB / 378 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1601/0.3185, allocations: 1.74 MB / 379.8 MB, free: 51.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/0.3188, allocations: 162.9 kB / 379.9 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.3189, allocations: 25.12 kB / 380 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006156/0.3195, allocations: 50.34 kB / 380 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.3197, allocations: 74.12 kB / 380.1 MB, free: 51.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-05/0.3198, allocations: 33.59 kB / 380.1 MB, free: 51.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006191/0.3204, allocations: 441.8 kB / 380.5 MB, free: 51.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3204, allocations: 0 / 380.5 MB, free: 51.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009756/0.3214, allocations: 258.7 kB / 380.8 MB, free: 51.31 MB / 318.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.0001534/0.3216, allocations: 131.4 kB / 380.9 MB, free: 51.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.3237, allocations: 1.343 MB / 382.3 MB, free: 50.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3237, allocations: 1.406 kB / 382.3 MB, free: 50.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.325, allocations: 1.003 MB / 383.3 MB, free: 50.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009106/0.3259, allocations: 185.9 kB / 383.5 MB, free: 50.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/0.3293, allocations: 2.137 MB / 385.6 MB, free: 49.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005387/0.3298, allocations: 1.025 MB / 386.6 MB, free: 48.61 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004929/0.3303, allocations: 120.1 kB / 386.7 MB, free: 48.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002276/0.3306, allocations: 77.34 kB / 386.8 MB, free: 48.57 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3306, allocations: 0 / 386.8 MB, free: 48.57 MB / 318.1 MB Notification: Performance of Templates: time 0.01847/0.349, allocations: 11.9 MB / 398.7 MB, free: 44.18 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches