Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.002008/0.002008, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.00249/0.00249, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 48.06 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3513, allocations: 53.36 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004273/0.3555, allocations: 1.979 MB / 433.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.3566, allocations: 0.5103 MB / 434 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.3567, allocations: 0 / 434 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.3568, allocations: 23.73 kB / 434.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.101e-05/0.3569, allocations: 27.7 kB / 434.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.3572, allocations: 67.81 kB / 434.2 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.3574, allocations: 119.6 kB / 434.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.3576, allocations: 33.62 kB / 434.3 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.525e-05/0.3577, allocations: 51.83 kB / 434.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.085e-05/0.3578, allocations: 47.72 kB / 434.4 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.3578, allocations: 8 kB / 434.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.501e-05/0.3578, allocations: 12 kB / 434.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.372e-05/0.3578, allocations: 23.92 kB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.995e-05/0.3579, allocations: 47.78 kB / 434.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002182/0.3581, allocations: 133.6 kB / 434.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3581, allocations: 4 kB / 434.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3581, allocations: 4 kB / 434.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.3581, allocations: 0 / 434.6 MB, free: 3.629 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005972/0.3587, allocations: 345.8 kB / 435 MB, free: 3.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.3588, allocations: 8.031 kB / 435 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.586e-05/0.3588, allocations: 16.84 kB / 435 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.3591, allocations: 153.5 kB / 435.1 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.3591, allocations: 8.375 kB / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.3591, allocations: 16.33 kB / 435.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/0.3596, allocations: 247.7 kB / 435.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3596, allocations: 0 / 435.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.3597, allocations: 11.98 kB / 435.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3597, allocations: 0 / 435.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.3599, allocations: 91.88 kB / 435.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000643/0.3606, allocations: 488.4 kB / 436 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.3608, allocations: 151.8 kB / 436.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.361, allocations: 66.64 kB / 436.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.361, allocations: 4 kB / 436.2 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.3611, allocations: 42.5 kB / 436.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.3611, allocations: 0 / 436.3 MB, free: 1.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005002/0.3616, allocations: 173.4 kB / 436.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.051e-05/0.3617, allocations: 122.7 kB / 436.5 MB, free: 1.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.3618, allocations: 126.1 kB / 436.7 MB, free: 1.391 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.3618, allocations: 25.7 kB / 436.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.594e-05/0.3619, allocations: 115.8 kB / 436.8 MB, free: 1.242 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.3619, allocations: 27.78 kB / 436.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.3619, allocations: 37.7 kB / 436.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3621, allocations: 322.8 kB / 437.2 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.3622, allocations: 40.09 kB / 437.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.3624, allocations: 137.2 kB / 437.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003041/0.3627, allocations: 180.6 kB / 437.5 MB, free: 420 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3627, allocations: 0 / 437.5 MB, free: 420 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003808/0.3631, allocations: 189.2 kB / 437.7 MB, free: 224 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.3631, allocations: 4 kB / 437.7 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.3631, allocations: 4 kB / 437.7 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3631, allocations: 8 kB / 437.7 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.3633, allocations: 44.3 kB / 437.8 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.3633, allocations: 11.98 kB / 437.8 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.3634, allocations: 19.89 kB / 437.8 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.3634, allocations: 8 kB / 437.8 MB, free: 124 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001286/0.3635, allocations: 133.8 kB / 437.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.3637, allocations: 81.58 kB / 438 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.172e-05/0.3637, allocations: 12.72 kB / 438 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.3637, allocations: 7.938 kB / 438 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3637, allocations: 0 / 438 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3637, allocations: 0 / 438 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002264/0.364, allocations: 149.6 kB / 438.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.364, allocations: 0 / 438.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/0.3641, allocations: 31.97 kB / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.463e-06/0.3641, allocations: 4 kB / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.3642, allocations: 4 kB / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3642, allocations: 3.938 kB / 438.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.3642, allocations: 11.88 kB / 438.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000534/0.3647, allocations: 363.6 kB / 438.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.36e-05/0.3647, allocations: 23.92 kB / 438.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.3647, allocations: 4 kB / 438.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.3649, allocations: 8 kB / 438.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.019e-05/0.3649, allocations: 11.92 kB / 438.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.3649, allocations: 8 kB / 438.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.944e-05/0.365, allocations: 95.27 kB / 438.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.365, allocations: 0 / 438.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00032/0.3653, allocations: 24 kB / 438.8 MB, free: 15.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001044/0.3654, allocations: 115.2 kB / 438.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003179/0.3657, allocations: 108 kB / 439 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3657, allocations: 0 / 439 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.502e-05/0.3658, allocations: 28.89 kB / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.3663, allocations: 65.28 kB / 439.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007121/0.367, allocations: 390.3 kB / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001011/0.3671, allocations: 101.5 kB / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.606e-05/0.3672, allocations: 16.59 kB / 439.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.18e-05/0.3672, allocations: 19.44 kB / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3672, allocations: 0 / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of Templates: time 0.00409/0.3713, allocations: 1.334 MB / 440.9 MB, free: 12.94 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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: 4.572321152314544]