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.001432/0.001432, allocations: 99.39 kB / 18.35 MB, free: 4.648 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.001631/0.001631, allocations: 192 kB / 19.29 MB, free: 3.715 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.518/1.518, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001387/0.001387, allocations: 47.94 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09351, allocations: 46.62 MB / 328.7 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008887/0.1025, allocations: 6.24 MB / 335 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005361/0.1079, allocations: 1.874 MB / 336.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.1094, allocations: 19.94 kB / 336.9 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.1105, allocations: 214 kB / 337.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002009/0.1125, allocations: 396.8 kB / 337.5 MB, free: 11 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.1137, allocations: 375.5 kB / 337.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002437/0.1161, allocations: 1.483 MB / 339.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009616/0.1171, allocations: 0.5052 MB / 339.8 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009363/0.1181, allocations: 0.5372 MB / 340.3 MB, free: 8.086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009898/0.1191, allocations: 0.5991 MB / 340.9 MB, free: 7.484 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002795/0.1194, allocations: 160 kB / 341.1 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003105/0.1197, allocations: 156 kB / 341.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002412/0.1199, allocations: 307 kB / 341.6 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006181/0.1205, allocations: 0.6417 MB / 342.2 MB, free: 6.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001558/0.1221, allocations: 1.846 MB / 344 MB, free: 4.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1221, allocations: 0 / 344 MB, free: 4.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1221, allocations: 0 / 344 MB, free: 4.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.1222, allocations: 0 / 344 MB, free: 4.379 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.00282/0.125, allocations: 1.446 MB / 345.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.125, allocations: 12.03 kB / 345.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.1252, allocations: 119.5 kB / 345.6 MB, free: 2.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.1264, allocations: 0.6844 MB / 346.3 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.469e-05/0.1265, allocations: 74.38 kB / 346.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.1266, allocations: 96.28 kB / 346.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.1284, allocations: 1.009 MB / 347.5 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/0.1285, allocations: 3.906 kB / 347.5 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.422e-05/0.1286, allocations: 40 kB / 347.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.168e-05/0.1286, allocations: 24 kB / 347.5 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001802/0.1304, allocations: 0.8717 MB / 348.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004759/0.1352, allocations: 3.301 MB / 351.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.1366, allocations: 0.8194 MB / 352.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008643/0.1375, allocations: 479.1 kB / 353 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.196e-05/0.1375, allocations: 13.16 kB / 353 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.1376, allocations: 43.06 kB / 353.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.947e-06/0.1376, allocations: 3.984 kB / 353.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009302/0.1469, allocations: 4.297 MB / 357.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.147, allocations: 89.7 kB / 357.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008052/0.1478, allocations: 0.6007 MB / 358 MB, free: 5.871 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.418e-05/0.1479, allocations: 45.7 kB / 358.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.1482, allocations: 424.1 kB / 358.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002869/0.1485, allocations: 398.2 kB / 358.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002825/0.1488, allocations: 182.9 kB / 359.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.149, allocations: 394.7 kB / 359.5 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008222/0.1498, allocations: 382.4 kB / 359.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009143/0.1507, allocations: 0.5119 MB / 360.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001683/0.1524, allocations: 0.8848 MB / 361.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1524, allocations: 4 kB / 361.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002298/0.1548, allocations: 1.184 MB / 362.4 MB, free: 1.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.1548, allocations: 12.2 kB / 362.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.1548, allocations: 8 kB / 362.4 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003963/0.1552, allocations: 130.5 kB / 362.6 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.1562, allocations: 255.6 kB / 362.8 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003857/0.1601, allocations: 4.957 MB / 367.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008203/0.161, allocations: 52 kB / 367.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.287e-05/0.161, allocations: 39.98 kB / 367.9 MB, free: 11.51 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.0005142/0.1616, allocations: 277.7 kB / 368.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.1617, allocations: 86.97 kB / 368.2 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.1633, allocations: 0.7722 MB / 369 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.1633, allocations: 15.98 kB / 369 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.1633, allocations: 4 kB / 369 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.1633, allocations: 4.109 kB / 369 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004068/0.1674, allocations: 2.648 MB / 371.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.1674, allocations: 0 / 371.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000888/0.1683, allocations: 203.7 kB / 371.9 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004337/0.1688, allocations: 167.4 kB / 372 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.305e-05/0.1688, allocations: 27.98 kB / 372.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004457/0.1733, allocations: 5.99 MB / 378 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.1733, allocations: 3.938 kB / 378 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1652/0.3385, allocations: 1.732 MB / 379.8 MB, free: 51.47 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002384/0.3388, allocations: 162.4 kB / 379.9 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.339, allocations: 26.38 kB / 380 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005774/0.3395, allocations: 51.53 kB / 380 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.3397, allocations: 77.8 kB / 380.1 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.255e-05/0.3398, allocations: 31.17 kB / 380.1 MB, free: 51.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006378/0.3405, allocations: 444.2 kB / 380.6 MB, free: 51.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3405, allocations: 0 / 380.6 MB, free: 51.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001065/0.3415, allocations: 257.7 kB / 380.8 MB, free: 51.29 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.0001647/0.3417, allocations: 130.9 kB / 380.9 MB, free: 51.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00223/0.344, allocations: 1.341 MB / 382.3 MB, free: 50.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.344, allocations: 0 / 382.3 MB, free: 50.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.3453, allocations: 1.004 MB / 383.3 MB, free: 50.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009233/0.3463, allocations: 189.7 kB / 383.5 MB, free: 50.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.3497, allocations: 2.132 MB / 385.6 MB, free: 49.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00055/0.3503, allocations: 1.026 MB / 386.6 MB, free: 48.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005186/0.3508, allocations: 122.9 kB / 386.7 MB, free: 48.55 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.3511, allocations: 78.67 kB / 386.8 MB, free: 48.55 MB / 318.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3511, allocations: 0 / 386.8 MB, free: 48.55 MB / 318.1 MB Notification: Performance of Templates: time 0.01907/0.3702, allocations: 11.9 MB / 398.7 MB, free: 44.25 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 cvode -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