Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.000988/0.000988, allocations: 83.89 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001034/0.001034, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 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 0.96/0.96, allocations: 173.3 MB / 201.1 MB, free: 8.992 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 268 MB, free: 6.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.46e-05/2.613e-05, allocations: 2.312 kB / 268 MB, free: 6.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.006056/0.006082, allocations: 6.326 MB / 274.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.009733, allocations: 2.17 MB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007641/0.0105, allocations: 23.88 kB / 276.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008057/0.0113, allocations: 349.7 kB / 276.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.01236, allocations: 0.5003 MB / 277.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008093/0.01317, allocations: 455.2 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.01459, allocations: 1.584 MB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004522/0.01504, allocations: 333.8 kB / 279.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.01606, allocations: 0.8772 MB / 280.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006834/0.01675, allocations: 0.5571 MB / 281.1 MB, free: 9.074 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002236/0.01697, allocations: 156 kB / 281.3 MB, free: 8.922 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003275/0.0173, allocations: 192 kB / 281.5 MB, free: 8.734 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005801/0.01788, allocations: 330.9 kB / 281.8 MB, free: 8.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005053/0.01838, allocations: 466.9 kB / 282.3 MB, free: 7.953 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.01969, allocations: 1.032 MB / 283.3 MB, free: 6.918 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.0197, allocations: 4 kB / 283.3 MB, free: 6.914 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.0197, allocations: 0 / 283.3 MB, free: 6.914 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.44e-05/0.01973, allocations: 0 / 283.3 MB, free: 6.914 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002278/0.02201, allocations: 1.558 MB / 284.8 MB, free: 5.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.02206, allocations: 12.92 kB / 284.9 MB, free: 5.305 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002465/0.0223, allocations: 208.1 kB / 285.1 MB, free: 5.102 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008336/0.02314, allocations: 0.6649 MB / 285.7 MB, free: 4.406 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.0232, allocations: 74.38 kB / 285.8 MB, free: 4.332 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.02331, allocations: 96.33 kB / 285.9 MB, free: 4.238 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.02443, allocations: 0.7888 MB / 286.7 MB, free: 3.422 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.557e-05/0.02446, allocations: 7.938 kB / 286.7 MB, free: 3.414 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.245e-05/0.02453, allocations: 44 kB / 286.7 MB, free: 3.371 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.882e-05/0.02455, allocations: 20 kB / 286.8 MB, free: 3.352 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000691/0.02524, allocations: 417.5 kB / 287.2 MB, free: 2.941 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003329/0.02857, allocations: 2.777 MB / 289.9 MB, free: 60 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1168/0.1454, allocations: 497 kB / 290.4 MB, free: 23.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003622/0.1457, allocations: 191.3 kB / 290.6 MB, free: 23.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.331e-05/0.1458, allocations: 14.23 kB / 290.6 MB, free: 23.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.1458, allocations: 42.38 kB / 290.7 MB, free: 23.74 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 3.015e-06/0.1458, allocations: 1.75 kB / 290.7 MB, free: 23.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=67): time 0.002329/0.1482, allocations: 1.178 MB / 291.8 MB, free: 23.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.1482, allocations: 85.33 kB / 291.9 MB, free: 23.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008136/0.149, allocations: 0.743 MB / 292.7 MB, free: 23.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.149, allocations: 39.19 kB / 292.7 MB, free: 23.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000295/0.1493, allocations: 0.5928 MB / 293.3 MB, free: 22.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.1495, allocations: 242.4 kB / 293.5 MB, free: 22.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001982/0.1497, allocations: 164 kB / 293.7 MB, free: 22.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1498, allocations: 0.5673 MB / 294.3 MB, free: 22.24 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.1501, allocations: 131.7 kB / 294.4 MB, free: 22.24 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.1505, allocations: 384.7 kB / 294.8 MB, free: 21.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00055/0.151, allocations: 0.5252 MB / 295.3 MB, free: 21.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.151, allocations: 2.219 kB / 295.3 MB, free: 21.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.0009538/0.152, allocations: 0.6449 MB / 295.9 MB, free: 21.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.152, allocations: 13.03 kB / 296 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.152, allocations: 6.25 kB / 296 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.1521, allocations: 9.781 kB / 296 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006394/0.1527, allocations: 249 kB / 296.2 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.005e-05/0.1527, allocations: 12.88 kB / 296.2 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004099/0.1531, allocations: 51.5 kB / 296.3 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.1532, allocations: 34.17 kB / 296.3 MB, free: 21.55 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (108): * Single equations (assignments): 108 * 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.0002219/0.1534, allocations: 209.6 kB / 296.5 MB, free: 21.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.1535, allocations: 116.8 kB / 296.6 MB, free: 21.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000334/0.1539, allocations: 230.8 kB / 296.9 MB, free: 21.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.1539, allocations: 6.375 kB / 296.9 MB, free: 21.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.1539, allocations: 1.844 kB / 296.9 MB, free: 21.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.1539, allocations: 4.703 kB / 296.9 MB, free: 21.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002015/0.1559, allocations: 1.718 MB / 298.6 MB, free: 20.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.1559, allocations: 8.391 kB / 298.6 MB, free: 20.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004129/0.1563, allocations: 180.4 kB / 298.8 MB, free: 20.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-05/0.1563, allocations: 9.766 kB / 298.8 MB, free: 20.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.1564, allocations: 24.84 kB / 298.8 MB, free: 20.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.437e-05/0.1564, allocations: 15.53 kB / 298.8 MB, free: 20.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.495e-06/0.1564, allocations: 17.16 kB / 298.8 MB, free: 20.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007255/0.1571, allocations: 0.9409 MB / 299.8 MB, free: 19.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.1572, allocations: 99.27 kB / 299.9 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.632e-05/0.1573, allocations: 26.34 kB / 299.9 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.1576, allocations: 34.94 kB / 299.9 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.677e-05/0.1577, allocations: 68.55 kB / 300 MB, free: 19.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.1577, allocations: 30.86 kB / 300 MB, free: 19.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004698/0.1582, allocations: 479.1 kB / 300.5 MB, free: 19.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1582, allocations: 0 / 300.5 MB, free: 19.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006381/0.1588, allocations: 207 kB / 300.7 MB, free: 19.64 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.0007617/0.1596, allocations: 357.3 kB / 301.1 MB, free: 19.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007194/0.1603, allocations: 428.6 kB / 301.5 MB, free: 19.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1603, allocations: 2.375 kB / 301.5 MB, free: 19.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002653/0.1606, allocations: 197.1 kB / 301.7 MB, free: 19.49 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/0.1613, allocations: 211.5 kB / 301.9 MB, free: 19.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002304/0.1636, allocations: 1.752 MB / 303.6 MB, free: 18.35 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001399/0.1637, allocations: 177.1 kB / 303.8 MB, free: 18.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003665/0.1641, allocations: 122.6 kB / 303.9 MB, free: 18.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.1643, allocations: 70.52 kB / 304 MB, free: 18.22 MB / 266.7 MB Notification: Performance of SimCode: time 1.383e-06/0.1643, allocations: 0 / 304 MB, free: 18.22 MB / 266.7 MB Notification: Performance of Templates: time 0.01295/0.1772, allocations: 10.27 MB / 314.3 MB, free: 11.94 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2089611240662634]