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.0009178/0.0009178, allocations: 95.88 kB / 16.95 MB, free: 6.457 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.0009638/0.0009636, allocations: 182.5 kB / 17.84 MB, free: 6.008 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.683/1.683, allocations: 205.4 MB / 224 MB, free: 13.15 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.0005095/0.0005097, allocations: 16 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1175, allocations: 47.57 MB / 328.4 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007091/0.1247, allocations: 5.432 MB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004272/0.129, allocations: 1.781 MB / 335.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.1302, allocations: 19.94 kB / 335.6 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009826/0.1312, allocations: 170.8 kB / 335.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001757/0.133, allocations: 321.6 kB / 336.1 MB, free: 12.33 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009447/0.134, allocations: 215.7 kB / 336.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002314/0.1363, allocations: 1.327 MB / 337.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008241/0.1371, allocations: 374.2 kB / 338 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008452/0.138, allocations: 414.4 kB / 338.4 MB, free: 10 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009391/0.139, allocations: 497.8 kB / 338.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.1391, allocations: 60 kB / 338.9 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.1393, allocations: 60 kB / 339 MB, free: 9.395 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.1394, allocations: 199.1 kB / 339.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002825/0.1397, allocations: 241.1 kB / 339.4 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.1409, allocations: 1.457 MB / 340.9 MB, free: 7.496 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.141, allocations: 4 kB / 340.9 MB, free: 7.492 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.141, allocations: 0 / 340.9 MB, free: 7.492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.771e-05/0.141, allocations: 0 / 340.9 MB, free: 7.492 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.002592/0.1436, allocations: 1.297 MB / 342.2 MB, free: 6.145 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1436, allocations: 12.03 kB / 342.2 MB, free: 6.133 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000226/0.1439, allocations: 118.6 kB / 342.3 MB, free: 6.016 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.1449, allocations: 0.6524 MB / 342.9 MB, free: 5.316 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.1451, allocations: 74 kB / 343 MB, free: 5.246 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.1452, allocations: 103.9 kB / 343.1 MB, free: 5.145 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001989/0.1472, allocations: 1.021 MB / 344.1 MB, free: 4.113 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.687e-05/0.1473, allocations: 3.984 kB / 344.1 MB, free: 4.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.056e-05/0.1474, allocations: 44 kB / 344.2 MB, free: 4.066 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.1474, allocations: 20 kB / 344.2 MB, free: 4.047 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001869/0.1493, allocations: 0.9108 MB / 345.1 MB, free: 3.137 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00503/0.1543, allocations: 3.348 MB / 348.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/0.1558, allocations: 0.8508 MB / 349.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008664/0.1566, allocations: 499 kB / 349.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.752e-05/0.1567, allocations: 13.14 kB / 349.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.1568, allocations: 47.06 kB / 349.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.056e-06/0.1568, allocations: 0 / 349.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009539/0.1663, allocations: 4.434 MB / 354.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.455e-05/0.1664, allocations: 89.77 kB / 354.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009103/0.1673, allocations: 0.6007 MB / 355 MB, free: 8.875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.172e-05/0.1674, allocations: 45.7 kB / 355 MB, free: 8.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003218/0.1677, allocations: 428.1 kB / 355.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003524/0.1681, allocations: 394.2 kB / 355.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.426e-05/0.1681, allocations: 20 kB / 355.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.1684, allocations: 398.7 kB / 356.2 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008299/0.1692, allocations: 402.4 kB / 356.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009248/0.1701, allocations: 0.5276 MB / 357.2 MB, free: 6.633 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009364/0.1711, allocations: 440 kB / 357.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1711, allocations: 0 / 357.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002379/0.1735, allocations: 1.231 MB / 358.8 MB, free: 4.957 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.1735, allocations: 8 kB / 358.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1735, allocations: 0 / 358.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004467/0.174, allocations: 134.5 kB / 359 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.175, allocations: 271.5 kB / 359.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/0.1792, allocations: 4.52 MB / 363.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007835/0.18, allocations: 63.95 kB / 363.8 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.062e-05/0.1801, allocations: 35.98 kB / 363.8 MB, free: 15.52 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_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 initialization (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000566/0.1807, allocations: 278 kB / 364.1 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.1809, allocations: 86.97 kB / 364.2 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/0.1826, allocations: 0.7842 MB / 365 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.1826, allocations: 12.05 kB / 365 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/0.1826, allocations: 11.98 kB / 365 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.1826, allocations: 11.92 kB / 365 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004733/0.1874, allocations: 2.702 MB / 367.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.1874, allocations: 3.953 kB / 367.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000875/0.1883, allocations: 211.8 kB / 367.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004177/0.1887, allocations: 159.3 kB / 368.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-05/0.1888, allocations: 27.98 kB / 368.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004672/0.1935, allocations: 5.557 MB / 373.7 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1935, allocations: 64 / 373.7 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0033/0.1968, allocations: 1.802 MB / 375.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003021/0.1971, allocations: 156.1 kB / 375.6 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.1972, allocations: 27.98 kB / 375.7 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.1978, allocations: 59.97 kB / 375.7 MB, free: 2.926 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.198, allocations: 88.34 kB / 375.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.925e-05/0.198, allocations: 31.98 kB / 375.8 MB, free: 2.809 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006605/0.1987, allocations: 439.1 kB / 376.3 MB, free: 2.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1987, allocations: 3.938 kB / 376.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00103/0.1998, allocations: 256 kB / 376.5 MB, free: 2.125 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002372/0.2, allocations: 130.9 kB / 376.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.2025, allocations: 1.376 MB / 378 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2025, allocations: 0 / 378 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1939/0.3964, allocations: 1.016 MB / 379 MB, free: 51.58 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.398, allocations: 165.2 kB / 379.2 MB, free: 51.58 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004306/0.4024, allocations: 2.65 MB / 381.8 MB, free: 50.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006284/0.403, allocations: 1.02 MB / 382.9 MB, free: 49.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007498/0.4038, allocations: 127.7 kB / 383 MB, free: 49.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000228/0.404, allocations: 73.16 kB / 383.1 MB, free: 49.64 MB / 318.1 MB Notification: Performance of SimCode: time 2.815e-06/0.404, allocations: 0 / 383.1 MB, free: 49.64 MB / 318.1 MB Notification: Performance of Templates: time 0.02305/0.4271, allocations: 10.79 MB / 393.8 MB, free: 46.35 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches