Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001967/0.001967, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00218/0.00218, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 51.92 kB / 365.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1165, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.006507/0.123, allocations: 4.599 MB / 422.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003275/0.1263, allocations: 1.819 MB / 424.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000332/0.1266, allocations: 12 kB / 424.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007548/0.1274, allocations: 422.2 kB / 424.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007837/0.1281, allocations: 421.7 kB / 425 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.1288, allocations: 323.4 kB / 425.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.1299, allocations: 1.02 MB / 426.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000344/0.1302, allocations: 214.5 kB / 426.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000447/0.1307, allocations: 414.7 kB / 427 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005769/0.1313, allocations: 0.5217 MB / 427.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.1314, allocations: 96 kB / 427.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002033/0.1316, allocations: 128 kB / 427.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002167/0.1318, allocations: 239.2 kB / 428 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004073/0.1322, allocations: 449.7 kB / 428.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001268/0.1335, allocations: 1.272 MB / 429.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1335, allocations: 0 / 429.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1335, allocations: 0 / 429.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.1335, allocations: 4 kB / 429.7 MB, free: 0.6875 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002304/0.1358, allocations: 1.23 MB / 430.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1358, allocations: 8.031 kB / 430.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001343/0.136, allocations: 106.7 kB / 431 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.1362, allocations: 108.3 kB / 431.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009581/0.1371, allocations: 0.5556 MB / 431.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.968e-05/0.1372, allocations: 45.69 kB / 431.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.1373, allocations: 63.94 kB / 431.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.1385, allocations: 0.648 MB / 432.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.1385, allocations: 3.953 kB / 432.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.805e-05/0.1386, allocations: 28 kB / 432.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.1386, allocations: 12 kB / 432.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.1399, allocations: 0.5594 MB / 433 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003803/0.1437, allocations: 2.533 MB / 435.6 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000983/0.1446, allocations: 462.4 kB / 436 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006924/0.1453, allocations: 278 kB / 436.3 MB, free: 9.801 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.853e-05/0.1454, allocations: 12.42 kB / 436.3 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.1454, allocations: 43 kB / 436.3 MB, free: 9.734 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 1.863e-06/0.1454, allocations: 0 / 436.3 MB, free: 9.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.004454/0.1499, allocations: 1.506 MB / 437.8 MB, free: 8.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.1499, allocations: 59.97 kB / 437.9 MB, free: 8.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.1511, allocations: 0.9341 MB / 438.8 MB, free: 7.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/0.1512, allocations: 37.7 kB / 438.9 MB, free: 7.176 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.1516, allocations: 412.7 kB / 439.3 MB, free: 6.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.1517, allocations: 214.1 kB / 439.5 MB, free: 6.559 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.152, allocations: 126.6 kB / 439.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.1521, allocations: 330 kB / 439.9 MB, free: 6.102 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006025/0.1527, allocations: 241.9 kB / 440.2 MB, free: 5.867 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006789/0.1534, allocations: 347.1 kB / 440.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.1546, allocations: 0.5674 MB / 441.1 MB, free: 4.898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1547, allocations: 0 / 441.1 MB, free: 4.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001576/0.1562, allocations: 0.7386 MB / 441.8 MB, free: 4.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.1562, allocations: 4 kB / 441.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.1563, allocations: 4 kB / 441.8 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.1563, allocations: 4 kB / 441.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007573/0.157, allocations: 176 kB / 442 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.157, allocations: 11.97 kB / 442 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.1576, allocations: 35.97 kB / 442 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/0.1576, allocations: 31.98 kB / 442.1 MB, free: 3.891 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMin.contact,actuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003702/0.158, allocations: 265.6 kB / 442.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.1581, allocations: 91.41 kB / 442.4 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001432/0.1595, allocations: 0.6319 MB / 443.1 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.1596, allocations: 8 kB / 443.1 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1596, allocations: 4 kB / 443.1 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.1596, allocations: 3.984 kB / 443.1 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002948/0.1625, allocations: 1.803 MB / 444.9 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.1625, allocations: 4 kB / 444.9 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005497/0.1631, allocations: 131.8 kB / 445 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.1631, allocations: 4 kB / 445 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.71e-05/0.1631, allocations: 19.98 kB / 445 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.1631, allocations: 4 kB / 445 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1631, allocations: 8.125 kB / 445 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2078/0.3709, allocations: 0.7473 MB / 445.8 MB, free: 29.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004795/0.3714, allocations: 205.3 kB / 446 MB, free: 29.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.3715, allocations: 16.06 kB / 446 MB, free: 29.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005311/0.372, allocations: 36.53 kB / 446 MB, free: 29.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.3721, allocations: 53.12 kB / 446.1 MB, free: 29.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.3722, allocations: 19.8 kB / 446.1 MB, free: 29.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007196/0.3729, allocations: 0.6846 MB / 446.8 MB, free: 29.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3729, allocations: 0 / 446.8 MB, free: 29.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005792/0.3735, allocations: 147.3 kB / 446.9 MB, free: 29.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002601/0.3761, allocations: 1.563 MB / 448.5 MB, free: 28.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.3774, allocations: 0.5523 MB / 449.1 MB, free: 28.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.3774, allocations: 3.531 kB / 449.1 MB, free: 28.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005547/0.378, allocations: 271 kB / 449.3 MB, free: 28.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009118/0.3789, allocations: 139.3 kB / 449.5 MB, free: 28.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.3892, allocations: 6.511 MB / 456 MB, free: 26.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.3897, allocations: 0.9626 MB / 456.9 MB, free: 25.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000472/0.3902, allocations: 93.28 kB / 457 MB, free: 25.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/0.3905, allocations: 294.9 kB / 457.3 MB, free: 25.55 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3905, allocations: 3.719 kB / 457.3 MB, free: 25.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04797/0.4385, allocations: 15.64 MB / 473 MB, free: 20.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.535/9.973, allocations: 3.938 kB / 473 MB, free: 20.52 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --stepSize=0.00159936 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceStrokeBehaviour/ForceStrokeBehaviour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.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: 13.025497645605356]