Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.0009021/0.0009021, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009368/0.0009368, allocations: 142.7 kB / 24.89 MB, free: 8.777 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.9047/0.9047, allocations: 173.4 MB / 201.5 MB, free: 8.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.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 268.5 MB, free: 9.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.524e-05/1.714e-05, allocations: 3.844 kB / 268.5 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003394/0.003411, allocations: 2.08 MB / 270.5 MB, free: 7.73 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.004448, allocations: 0.5081 MB / 271 MB, free: 7.219 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.004563, allocations: 10.03 kB / 271.1 MB, free: 7.211 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.004696, allocations: 11.86 kB / 271.1 MB, free: 7.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.596e-05/0.004792, allocations: 27.72 kB / 271.1 MB, free: 7.172 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.005091, allocations: 55.81 kB / 271.1 MB, free: 7.117 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001918/0.005282, allocations: 143.4 kB / 271.3 MB, free: 6.977 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.005433, allocations: 40.11 kB / 271.3 MB, free: 6.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.005572, allocations: 75.81 kB / 271.4 MB, free: 6.855 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.196e-05/0.005664, allocations: 43.81 kB / 271.4 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.005696, allocations: 8.625 kB / 271.5 MB, free: 6.805 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.028e-05/0.005717, allocations: 12 kB / 271.5 MB, free: 6.793 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.248e-05/0.005759, allocations: 28.5 kB / 271.5 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.88e-05/0.005808, allocations: 35.91 kB / 271.5 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.006005, allocations: 101.5 kB / 271.6 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.006007, allocations: 0 / 271.6 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.006009, allocations: 0 / 271.6 MB, free: 6.633 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.006015, allocations: 0 / 271.6 MB, free: 6.633 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005582/0.006573, allocations: 325.3 kB / 271.9 MB, free: 6.293 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.006621, allocations: 12.03 kB / 272 MB, free: 6.281 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.006682, allocations: 22.14 kB / 272 MB, free: 6.262 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.006923, allocations: 149.5 kB / 272.1 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.006939, allocations: 12.81 kB / 272.1 MB, free: 6.078 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.00698, allocations: 12.38 kB / 272.1 MB, free: 6.066 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.007329, allocations: 196.3 kB / 272.3 MB, free: 5.848 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.007348, allocations: 12.12 kB / 272.4 MB, free: 5.836 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.007363, allocations: 4.375 kB / 272.4 MB, free: 5.832 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.007375, allocations: 7.938 kB / 272.4 MB, free: 5.824 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.068e-05/0.007446, allocations: 38.72 kB / 272.4 MB, free: 5.789 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.008082, allocations: 450 kB / 272.8 MB, free: 5.312 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002286/0.008311, allocations: 99.69 kB / 272.9 MB, free: 5.188 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.707e-05/0.008368, allocations: 42.66 kB / 273 MB, free: 5.137 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.008391, allocations: 4 kB / 273 MB, free: 5.133 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.008423, allocations: 38.5 kB / 273 MB, free: 5.086 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.008425, allocations: 0 / 273 MB, free: 5.086 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002466/0.008671, allocations: 101.5 kB / 273.1 MB, free: 4.98 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.892e-05/0.00876, allocations: 106.8 kB / 273.2 MB, free: 4.852 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.008867, allocations: 150.8 kB / 273.4 MB, free: 4.691 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.008882, allocations: 25.7 kB / 273.4 MB, free: 4.66 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.535e-05/0.008947, allocations: 119.9 kB / 273.5 MB, free: 4.539 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.008967, allocations: 19.84 kB / 273.5 MB, free: 4.52 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-05/0.009014, allocations: 29.7 kB / 273.6 MB, free: 4.484 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.009123, allocations: 322.8 kB / 273.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.163e-05/0.009145, allocations: 8 kB / 273.9 MB, free: 4.152 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.957e-05/0.009214, allocations: 75.52 kB / 274 MB, free: 4.051 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.758e-05/0.009312, allocations: 74.8 kB / 274 MB, free: 3.953 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.009318, allocations: 4 kB / 274 MB, free: 3.949 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001314/0.009449, allocations: 81.47 kB / 274.1 MB, free: 3.863 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.009465, allocations: 4 kB / 274.1 MB, free: 3.859 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.009473, allocations: 4.219 kB / 274.1 MB, free: 3.855 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.009492, allocations: 8 kB / 274.1 MB, free: 3.848 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.00961, allocations: 31.92 kB / 274.2 MB, free: 3.816 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.009616, allocations: 0 / 274.2 MB, free: 3.816 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.861e-05/0.009675, allocations: 15.92 kB / 274.2 MB, free: 3.801 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.009685, allocations: 7.938 kB / 274.2 MB, free: 3.793 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 8.403e-05/0.009769, allocations: 109.8 kB / 274.3 MB, free: 3.676 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.009906, allocations: 73.92 kB / 274.4 MB, free: 3.598 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.932e-05/0.009945, allocations: 20.77 kB / 274.4 MB, free: 3.578 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.009952, allocations: 4 kB / 274.4 MB, free: 3.574 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.009954, allocations: 4 kB / 274.4 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.009959, allocations: 0 / 274.4 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.01016, allocations: 97.69 kB / 274.5 MB, free: 3.457 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.01016, allocations: 0 / 274.5 MB, free: 3.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.01033, allocations: 48.14 kB / 274.5 MB, free: 3.41 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.01033, allocations: 4 kB / 274.5 MB, free: 3.406 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.01035, allocations: 3.984 kB / 274.5 MB, free: 3.402 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.01035, allocations: 0 / 274.5 MB, free: 3.402 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.01036, allocations: 8 kB / 274.6 MB, free: 3.395 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002079/0.01057, allocations: 239.5 kB / 274.8 MB, free: 3.141 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.336e-05/0.01059, allocations: 23.92 kB / 274.8 MB, free: 3.117 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.073e-05/0.01061, allocations: 4 kB / 274.8 MB, free: 3.113 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.01072, allocations: 4 kB / 274.8 MB, free: 3.109 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.628e-05/0.01076, allocations: 7.984 kB / 274.8 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.01076, allocations: 4 kB / 274.8 MB, free: 3.098 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.398e-05/0.0108, allocations: 24.11 kB / 274.9 MB, free: 3.074 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0108, allocations: 0 / 274.9 MB, free: 3.074 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003014/0.0111, allocations: 24 kB / 274.9 MB, free: 3.051 MB / 250.7 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 (15): * Single equations (assignments): 15 * 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.0001022/0.0112, allocations: 92.34 kB / 275 MB, free: 2.953 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001199/0.01132, allocations: 56.7 kB / 275 MB, free: 2.895 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.01133, allocations: 4 kB / 275 MB, free: 2.891 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.716e-05/0.01135, allocations: 24.72 kB / 275.1 MB, free: 2.863 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.01175, allocations: 51.05 kB / 275.1 MB, free: 2.812 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007886/0.01254, allocations: 347.5 kB / 275.4 MB, free: 2.441 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.803e-05/0.0126, allocations: 71.33 kB / 275.5 MB, free: 2.352 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.804e-05/0.01264, allocations: 9.156 kB / 275.5 MB, free: 2.344 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.052e-05/0.01272, allocations: 67.36 kB / 275.6 MB, free: 2.277 MB / 250.7 MB Notification: Performance of SimCode: time 9.11e-07/0.01272, allocations: 0 / 275.6 MB, free: 2.277 MB / 250.7 MB Notification: Performance of Templates: time 0.003763/0.01648, allocations: 1.375 MB / 277 MB, free: 0.9688 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.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.573237281758338]