Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001727/0.001727, allocations: 88.64 kB / 20.96 MB, free: 3.449 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.002004/0.002004, allocations: 149.1 kB / 24.26 MB, free: 160 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 1.569/1.569, allocations: 173.3 MB / 200.8 MB, free: 9.309 MB / 186.7 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: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.268e-05/3.455e-05, allocations: 2.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.005255/0.00529, allocations: 1.971 MB / 269.3 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.006787, allocations: 0.518 MB / 269.8 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.006911, allocations: 3.938 kB / 269.8 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.007076, allocations: 15.86 kB / 269.8 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001854/0.007262, allocations: 23.67 kB / 269.8 MB, free: 4.195 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.007617, allocations: 63.8 kB / 269.9 MB, free: 4.133 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002712/0.007888, allocations: 123.5 kB / 270 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.008077, allocations: 41.56 kB / 270 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.008267, allocations: 75.8 kB / 270.1 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.008392, allocations: 51.81 kB / 270.2 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.294e-05/0.008445, allocations: 12 kB / 270.2 MB, free: 3.828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.435e-05/0.008479, allocations: 8 kB / 270.2 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.511e-05/0.008524, allocations: 19.92 kB / 270.2 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.449e-05/0.008619, allocations: 39.91 kB / 270.3 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000311/0.00893, allocations: 127.5 kB / 270.4 MB, free: 3.637 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.008934, allocations: 0 / 270.4 MB, free: 3.637 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.129e-06/0.008939, allocations: 4 kB / 270.4 MB, free: 3.633 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.008946, allocations: 3.938 kB / 270.4 MB, free: 3.629 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008888/0.009835, allocations: 357.8 kB / 270.7 MB, free: 3.25 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.009881, allocations: 8.922 kB / 270.7 MB, free: 3.242 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.918e-05/0.00998, allocations: 24.84 kB / 270.8 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.01036, allocations: 153.5 kB / 270.9 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.01039, allocations: 16.36 kB / 270.9 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.114e-05/0.01044, allocations: 12.38 kB / 270.9 MB, free: 3.016 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007832/0.01122, allocations: 251.1 kB / 271.2 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.01124, allocations: 192 / 271.2 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.01127, allocations: 8.375 kB / 271.2 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.01128, allocations: 3.938 kB / 271.2 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000425/0.0117, allocations: 87.88 kB / 271.3 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009691/0.01267, allocations: 492.6 kB / 271.8 MB, free: 2.121 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005394/0.01321, allocations: 135.7 kB / 271.9 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/0.0135, allocations: 78.75 kB / 272 MB, free: 1.875 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.01354, allocations: 4 kB / 272 MB, free: 1.871 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/0.01359, allocations: 42.5 kB / 272 MB, free: 1.82 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.114e-06/0.01359, allocations: 0 / 272 MB, free: 1.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008638/0.01445, allocations: 185.4 kB / 272.2 MB, free: 1.633 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.01458, allocations: 115.3 kB / 272.3 MB, free: 1.496 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.01478, allocations: 141.7 kB / 272.5 MB, free: 1.348 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.01482, allocations: 25.7 kB / 272.5 MB, free: 1.316 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.01494, allocations: 111.9 kB / 272.6 MB, free: 1.203 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.011e-05/0.01498, allocations: 23.8 kB / 272.6 MB, free: 1.18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.101e-05/0.01506, allocations: 29.7 kB / 272.6 MB, free: 1.145 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002539/0.01532, allocations: 322.8 kB / 273 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.01549, allocations: 27.97 kB / 273 MB, free: 0.793 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.01571, allocations: 78.78 kB / 273.1 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.01612, allocations: 122.7 kB / 273.2 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01612, allocations: 0 / 273.2 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005072/0.01663, allocations: 145.6 kB / 273.3 MB, free: 408 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.01665, allocations: 4 kB / 273.3 MB, free: 404 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.01666, allocations: 4 kB / 273.3 MB, free: 400 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.01667, allocations: 0 / 273.3 MB, free: 400 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.01687, allocations: 27.98 kB / 273.4 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.01689, allocations: 3.984 kB / 273.4 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.01704, allocations: 20.05 kB / 273.4 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.01706, allocations: 12 kB / 273.4 MB, free: 336 kB / 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 0.00017/0.01723, allocations: 121.8 kB / 273.5 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002748/0.01751, allocations: 97.52 kB / 273.6 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.273e-05/0.0176, allocations: 20.77 kB / 273.6 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.01761, allocations: 0 / 273.6 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.921e-05/0.01762, allocations: 4 kB / 273.6 MB, free: 76 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.01763, allocations: 0 / 273.6 MB, free: 76 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.01807, allocations: 145.1 kB / 273.8 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.01808, allocations: 3.938 kB / 273.8 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.01838, allocations: 39.97 kB / 273.8 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-06/0.01839, allocations: 4 kB / 273.8 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.0184, allocations: 4 kB / 273.8 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.01841, allocations: 3.938 kB / 273.8 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.01842, allocations: 8 kB / 273.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000942/0.01936, allocations: 375.4 kB / 274.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.696e-05/0.0194, allocations: 15.94 kB / 274.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.647e-05/0.01943, allocations: 4 kB / 274.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.01968, allocations: 16.05 kB / 274.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.174e-05/0.01974, allocations: 4 kB / 274.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.01976, allocations: 7.984 kB / 274.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001245/0.01989, allocations: 99.27 kB / 274.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.01989, allocations: 3.938 kB / 274.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006036/0.02049, allocations: 27.88 kB / 274.4 MB, free: 15.28 MB / 266.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.0001608/0.02065, allocations: 99.25 kB / 274.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004634/0.02112, allocations: 95.81 kB / 274.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.02112, allocations: 0 / 274.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.02126, allocations: 23.98 kB / 274.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009224/0.02219, allocations: 55.03 kB / 274.6 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00098/0.02317, allocations: 346.6 kB / 275 MB, free: 14.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001663/0.02333, allocations: 101.3 kB / 275.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.491e-05/0.02339, allocations: 8.969 kB / 275.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.398e-05/0.02345, allocations: 20.5 kB / 275.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.02345, allocations: 0 / 275.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of Templates: time 0.006121/0.02957, allocations: 1.204 MB / 276.3 MB, free: 13.31 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.391807859996334]