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.001502/0.001502, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001745/0.001745, allocations: 152 kB / 24.81 MB, free: 9.281 MB / 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.9511/0.9511, allocations: 173.4 MB / 201.4 MB, free: 9.238 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.693e-06/1.693e-06, allocations: 0 / 268.4 MB, free: 6.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.199e-05/2.368e-05, allocations: 2.312 kB / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.005959/0.005982, allocations: 6.189 MB / 274.6 MB, free: 12 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002966/0.008948, allocations: 2.158 MB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004336/0.009382, allocations: 23.88 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008472/0.01023, allocations: 349.7 kB / 277.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008185/0.01105, allocations: 0.5003 MB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005897/0.01164, allocations: 459.2 kB / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.01274, allocations: 1.588 MB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.01311, allocations: 329.8 kB / 280 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007122/0.01382, allocations: 0.8928 MB / 280.9 MB, free: 9.688 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005054/0.01433, allocations: 0.5299 MB / 281.4 MB, free: 9.156 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001441/0.01447, allocations: 156 kB / 281.5 MB, free: 9.004 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.01468, allocations: 191.9 kB / 281.7 MB, free: 8.816 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.01488, allocations: 322.9 kB / 282 MB, free: 8.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003289/0.0152, allocations: 462.9 kB / 282.5 MB, free: 8.047 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008578/0.01606, allocations: 1.012 MB / 283.5 MB, free: 7.031 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.01607, allocations: 0 / 283.5 MB, free: 7.031 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.01607, allocations: 4 kB / 283.5 MB, free: 7.027 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.01608, allocations: 4 kB / 283.5 MB, free: 7.023 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.001869/0.01795, allocations: 1.538 MB / 285.1 MB, free: 5.445 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.01798, allocations: 12.92 kB / 285.1 MB, free: 5.434 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/0.01818, allocations: 212.1 kB / 285.3 MB, free: 5.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006053/0.01879, allocations: 0.6396 MB / 285.9 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.01884, allocations: 74.38 kB / 286 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.933e-05/0.01894, allocations: 96.33 kB / 286.1 MB, free: 4.391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007892/0.01973, allocations: 0.7261 MB / 286.8 MB, free: 3.633 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.01975, allocations: 7.938 kB / 286.8 MB, free: 3.625 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.111e-05/0.0198, allocations: 39.94 kB / 286.9 MB, free: 3.586 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.01981, allocations: 27.94 kB / 286.9 MB, free: 3.559 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004203/0.02023, allocations: 319.9 kB / 287.2 MB, free: 3.246 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003132/0.02337, allocations: 2.657 MB / 289.9 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008201/0.02419, allocations: 468.8 kB / 290.3 MB, free: 12 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1091/0.1333, allocations: 159.2 kB / 290.5 MB, free: 28.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.249e-05/0.1333, allocations: 19.22 kB / 290.5 MB, free: 28.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.1333, allocations: 45.97 kB / 290.5 MB, free: 28.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 2.685e-06/0.1333, allocations: 1.172 kB / 290.5 MB, free: 28.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=67): time 0.001778/0.1351, allocations: 0.8355 MB / 291.4 MB, free: 28.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.515e-05/0.1352, allocations: 84.17 kB / 291.4 MB, free: 28.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006551/0.1358, allocations: 0.7257 MB / 292.2 MB, free: 28.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.1358, allocations: 39.39 kB / 292.2 MB, free: 28.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.1361, allocations: 0.6033 MB / 292.8 MB, free: 28.13 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.1362, allocations: 242.5 kB / 293.1 MB, free: 28.01 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.1364, allocations: 168.5 kB / 293.2 MB, free: 27.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1365, allocations: 0.5767 MB / 293.8 MB, free: 27.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.1367, allocations: 98.58 kB / 293.9 MB, free: 27.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.137, allocations: 357.1 kB / 294.2 MB, free: 27.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/0.1374, allocations: 489.9 kB / 294.7 MB, free: 26.89 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1374, allocations: 1.531 kB / 294.7 MB, free: 26.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.0007346/0.1381, allocations: 0.5929 MB / 295.3 MB, free: 26.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1381, allocations: 8.375 kB / 295.3 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.1381, allocations: 5.531 kB / 295.3 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.1382, allocations: 9.766 kB / 295.3 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005798/0.1387, allocations: 246.9 kB / 295.6 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.1388, allocations: 12.59 kB / 295.6 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000351/0.1391, allocations: 49.66 kB / 295.6 MB, free: 26.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.1391, allocations: 33.27 kB / 295.7 MB, free: 26.79 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 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.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.0001838/0.1393, allocations: 212.6 kB / 295.9 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.1395, allocations: 114.6 kB / 296 MB, free: 26.58 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002773/0.1397, allocations: 222.5 kB / 296.2 MB, free: 26.53 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.1397, allocations: 6.734 kB / 296.2 MB, free: 26.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1397, allocations: 4.812 kB / 296.2 MB, free: 26.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.1398, allocations: 4.562 kB / 296.2 MB, free: 26.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.1415, allocations: 1.564 MB / 297.8 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.1415, allocations: 6.719 kB / 297.8 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003957/0.1419, allocations: 176.1 kB / 298 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.056e-05/0.1419, allocations: 11.22 kB / 298 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.1419, allocations: 22.55 kB / 298 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.006e-05/0.142, allocations: 15.86 kB / 298 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.142, allocations: 14.16 kB / 298 MB, free: 25.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005653/0.1425, allocations: 0.9072 MB / 298.9 MB, free: 25.1 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.924e-05/0.1426, allocations: 102.6 kB / 299 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.594e-05/0.1427, allocations: 24.23 kB / 299.1 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.143, allocations: 35.33 kB / 299.1 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.38e-05/0.143, allocations: 70.91 kB / 299.2 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.889e-05/0.1431, allocations: 28.02 kB / 299.2 MB, free: 25.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003331/0.1434, allocations: 438.4 kB / 299.6 MB, free: 24.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1434, allocations: 1.438 kB / 299.6 MB, free: 24.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006517/0.1441, allocations: 204.9 kB / 299.8 MB, free: 24.91 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.0007372/0.1448, allocations: 361.4 kB / 300.2 MB, free: 24.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005492/0.1453, allocations: 383.8 kB / 300.5 MB, free: 24.76 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.1453, allocations: 2.625 kB / 300.5 MB, free: 24.76 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.1456, allocations: 179.4 kB / 300.7 MB, free: 24.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007195/0.1463, allocations: 216.3 kB / 300.9 MB, free: 24.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.1484, allocations: 1.732 MB / 302.7 MB, free: 23.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001621/0.1486, allocations: 185.5 kB / 302.8 MB, free: 23.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003569/0.1489, allocations: 108.8 kB / 303 MB, free: 23.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004047/0.1493, allocations: 259 kB / 303.2 MB, free: 23.44 MB / 266.7 MB Notification: Performance of SimCode: time 9.31e-07/0.1493, allocations: 0 / 303.2 MB, free: 23.44 MB / 266.7 MB Notification: Performance of Templates: time 0.01452/0.1638, allocations: 11.14 MB / 314.3 MB, free: 15.73 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: 2.8419360360130668]