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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008021/0.0008021, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004541/0.004541, allocations: 162.5 kB / 24.69 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.829/0.829, allocations: 158.6 MB / 186.5 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.581e-05/1.72e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.1396/0.1396, allocations: 5.528 MB / 304 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.1419, allocations: 1.808 MB / 305.8 MB, free: 12.03 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003241/0.1422, allocations: 23.72 kB / 305.8 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004299/0.1426, allocations: 210.1 kB / 306 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005784/0.1432, allocations: 420.4 kB / 306.4 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.1437, allocations: 383.8 kB / 306.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001075/0.1448, allocations: 1.537 MB / 308.3 MB, free: 10.51 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004013/0.1452, allocations: 323.6 kB / 308.6 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008015/0.146, allocations: 0.8375 MB / 309.5 MB, free: 9.918 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004738/0.1464, allocations: 459.6 kB / 309.9 MB, free: 9.746 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.1466, allocations: 157.9 kB / 310.1 MB, free: 9.746 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.1468, allocations: 158.8 kB / 310.2 MB, free: 9.746 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.1469, allocations: 303.8 kB / 310.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003374/0.1472, allocations: 462.6 kB / 311 MB, free: 9.293 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001391/0.1486, allocations: 1.908 MB / 312.9 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1486, allocations: 1.062 kB / 312.9 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1486, allocations: 0 / 312.9 MB, free: 8.582 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.1487, allocations: 5.031 kB / 312.9 MB, free: 8.578 MB / 282.7 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.001831/0.1505, allocations: 1.387 MB / 314.3 MB, free: 7.723 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1505, allocations: 14.28 kB / 314.3 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.1507, allocations: 150.8 kB / 314.4 MB, free: 7.617 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.1508, allocations: 123.8 kB / 314.6 MB, free: 7.555 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008053/0.1516, allocations: 0.6201 MB / 315.2 MB, free: 7.121 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.965e-05/0.1517, allocations: 73.97 kB / 315.3 MB, free: 7.086 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.1518, allocations: 96.38 kB / 315.3 MB, free: 7.055 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.153, allocations: 1.054 MB / 316.4 MB, free: 6.586 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.1531, allocations: 10.89 kB / 316.4 MB, free: 6.578 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.575e-05/0.1531, allocations: 40.38 kB / 316.5 MB, free: 6.547 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.1531, allocations: 25.25 kB / 316.5 MB, free: 6.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.1543, allocations: 0.8656 MB / 317.3 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002983/0.1573, allocations: 2.841 MB / 320.2 MB, free: 4.332 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.1583, allocations: 0.7627 MB / 320.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005314/0.1588, allocations: 438.5 kB / 321.4 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.142e-05/0.1588, allocations: 14.7 kB / 321.4 MB, free: 3.719 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.1589, allocations: 48.06 kB / 321.4 MB, free: 3.668 MB / 282.7 MB Notification: Performance of pre-optimization done (n=91): time 2.104e-06/0.1589, allocations: 0 / 321.4 MB, free: 3.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=115): time 0.005368/0.1642, allocations: 3.944 MB / 325.4 MB, free: 1.336 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.1643, allocations: 89.08 kB / 325.5 MB, free: 1.238 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005197/0.1648, allocations: 0.6088 MB / 326.1 MB, free: 0.875 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.1648, allocations: 42.61 kB / 326.1 MB, free: 0.832 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.165, allocations: 437.3 kB / 326.5 MB, free: 456 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.1651, allocations: 411.4 kB / 326.9 MB, free: 88 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.1653, allocations: 179.8 kB / 327.1 MB, free: 15.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002586/0.1656, allocations: 400.5 kB / 327.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005298/0.1661, allocations: 378.5 kB / 327.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005779/0.1667, allocations: 0.5079 MB / 328.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.1677, allocations: 0.8937 MB / 329.3 MB, free: 14.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1677, allocations: 3.938 kB / 329.3 MB, free: 14.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001457/0.1691, allocations: 1.194 MB / 330.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1692, allocations: 6.875 kB / 330.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1692, allocations: 2.75 kB / 330.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.1694, allocations: 127.1 kB / 330.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005698/0.17, allocations: 249.6 kB / 330.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/0.1726, allocations: 4.642 MB / 335.5 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.173, allocations: 51.95 kB / 335.6 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/0.173, allocations: 35.98 kB / 335.6 MB, free: 8.848 MB / 298.7 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.0002653/0.1733, allocations: 282.3 kB / 335.9 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.1734, allocations: 91.44 kB / 336 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009356/0.1743, allocations: 0.7634 MB / 336.7 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1743, allocations: 15.94 kB / 336.7 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1743, allocations: 4 kB / 336.7 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.1743, allocations: 7.969 kB / 336.7 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002538/0.1769, allocations: 2.327 MB / 339.1 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1769, allocations: 4 kB / 339.1 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.1773, allocations: 215.7 kB / 339.3 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002461/0.1776, allocations: 147.3 kB / 339.4 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/0.1776, allocations: 27.98 kB / 339.5 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00285/0.1805, allocations: 5.548 MB / 345 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1805, allocations: 0 / 345 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.1824, allocations: 1.743 MB / 346.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.379e-05/0.1825, allocations: 95.42 kB / 346.8 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.816e-05/0.1825, allocations: 23.94 kB / 346.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.1828, allocations: 47.95 kB / 346.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/0.1832, allocations: 84.44 kB / 347 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.1832, allocations: 35.98 kB / 347 MB, free: 12.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003596/0.1836, allocations: 439.1 kB / 347.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1836, allocations: 0 / 347.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005505/0.1841, allocations: 256 kB / 347.7 MB, free: 12.13 MB / 314.7 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.002114/0.1863, allocations: 2.325 MB / 350 MB, free: 9.758 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.1877, allocations: 1.288 MB / 351.3 MB, free: 8.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1877, allocations: 4 kB / 351.3 MB, free: 8.426 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008154/0.1885, allocations: 0.9597 MB / 352.3 MB, free: 7.418 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/0.1892, allocations: 197 kB / 352.5 MB, free: 7.234 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00903/0.1982, allocations: 8.102 MB / 360.6 MB, free: 14.9 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.1985, allocations: 436.9 kB / 361 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003054/0.1988, allocations: 115.6 kB / 361.1 MB, free: 14.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006334/0.1994, allocations: 396.3 kB / 361.5 MB, free: 13.95 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1994, allocations: 4 kB / 361.5 MB, free: 13.94 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0382/0.2376, allocations: 22.46 MB / 384 MB, free: 7.391 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.598/7.836, allocations: 7.797 kB / 384 MB, free: 7.383 MB / 346.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.94036e-06 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.589444877579808]