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.001065/0.001065, allocations: 79.91 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.001954/0.001954, 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.9806/0.9806, allocations: 173.3 MB / 201.1 MB, free: 9 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.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.714e-06/1.714e-06, allocations: 0 / 268 MB, free: 6.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.01e-05/2.181e-05, allocations: 9.906 kB / 268 MB, free: 6.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002328/0.00235, allocations: 2.043 MB / 270 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007097/0.00306, allocations: 0.522 MB / 270.5 MB, free: 3.727 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.324e-05/0.003153, allocations: 3.938 kB / 270.5 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.003255, allocations: 19.8 kB / 270.6 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.003384, allocations: 27.72 kB / 270.6 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.003562, allocations: 55.81 kB / 270.6 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000143/0.003705, allocations: 131.5 kB / 270.8 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.003845, allocations: 41.61 kB / 270.8 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.459e-05/0.003939, allocations: 71.81 kB / 270.9 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.76e-05/0.004017, allocations: 39.88 kB / 270.9 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.004042, allocations: 12 kB / 270.9 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.737e-05/0.004059, allocations: 12 kB / 270.9 MB, free: 3.312 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.601e-05/0.004085, allocations: 23.91 kB / 271 MB, free: 3.289 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.573e-05/0.004131, allocations: 43.84 kB / 271 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.004283, allocations: 91.64 kB / 271.1 MB, free: 3.156 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.004286, allocations: 3.938 kB / 271.1 MB, free: 3.152 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.004286, allocations: 4 kB / 271.1 MB, free: 3.148 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.00429, allocations: 0 / 271.1 MB, free: 3.148 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.0004476/0.004738, allocations: 452.1 kB / 271.6 MB, free: 2.672 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.004772, allocations: 8.922 kB / 271.6 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.63e-05/0.004829, allocations: 28.84 kB / 271.6 MB, free: 2.637 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.005001, allocations: 148.4 kB / 271.7 MB, free: 2.465 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.005012, allocations: 8.375 kB / 271.7 MB, free: 2.457 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.387e-05/0.005046, allocations: 16.36 kB / 271.8 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003458/0.005392, allocations: 244.8 kB / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.005403, allocations: 192 / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.005415, allocations: 384 / 272 MB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.005425, allocations: 7.938 kB / 272 MB, free: 2.16 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.624e-05/0.005502, allocations: 43.91 kB / 272 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004752/0.005977, allocations: 0.6406 MB / 272.7 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002103/0.006187, allocations: 141.3 kB / 272.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.984e-05/0.006247, allocations: 55.12 kB / 272.9 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.00627, allocations: 11.98 kB / 272.9 MB, free: 1.168 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.00629, allocations: 37.39 kB / 272.9 MB, free: 1.121 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.944e-06/0.006292, allocations: 3.984 kB / 272.9 MB, free: 1.117 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002322/0.006524, allocations: 125.8 kB / 273.1 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.006578, allocations: 114.8 kB / 273.2 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.084e-05/0.006659, allocations: 181.9 kB / 273.3 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.006671, allocations: 33.7 kB / 273.4 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.623e-05/0.006737, allocations: 162.9 kB / 273.5 MB, free: 464 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.006754, allocations: 23.8 kB / 273.6 MB, free: 440 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/0.006788, allocations: 31.36 kB / 273.6 MB, free: 400 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.006905, allocations: 0.4922 MB / 274.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.22e-05/0.006927, allocations: 8 kB / 274.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.425e-05/0.006982, allocations: 85.42 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.008e-05/0.007062, allocations: 109.4 kB / 274.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.007064, allocations: 0 / 274.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001111/0.007175, allocations: 101.5 kB / 274.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.007187, allocations: 7.984 kB / 274.4 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.007193, allocations: 4 kB / 274.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.007206, allocations: 0 / 274.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.725e-05/0.007274, allocations: 24.2 kB / 274.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.007283, allocations: 11.94 kB / 274.4 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.404e-05/0.007317, allocations: 11.89 kB / 274.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.007324, allocations: 4 kB / 274.4 MB, free: 15.45 MB / 266.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 7.964e-05/0.007404, allocations: 168.5 kB / 274.6 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.834e-05/0.007492, allocations: 85.52 kB / 274.7 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.853e-05/0.007541, allocations: 20.77 kB / 274.7 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.007543, allocations: 0 / 274.7 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.007548, allocations: 4 kB / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.007553, allocations: 4 kB / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.007706, allocations: 152.5 kB / 274.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.007707, allocations: 0 / 274.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.949e-05/0.007796, allocations: 35.91 kB / 274.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.007799, allocations: 4 kB / 274.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.007812, allocations: 0 / 274.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.007814, allocations: 4 kB / 274.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.007815, allocations: 0 / 274.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.008062, allocations: 417.9 kB / 275.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.4e-05/0.008076, allocations: 11.91 kB / 275.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.008093, allocations: 4 kB / 275.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.218e-05/0.008155, allocations: 12.02 kB / 275.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.755e-05/0.008193, allocations: 4 kB / 275.4 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.0082, allocations: 8 kB / 275.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.913e-05/0.008249, allocations: 143.2 kB / 275.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008249, allocations: 0 / 275.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001897/0.008438, allocations: 27.88 kB / 275.5 MB, free: 14.3 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 7.268e-05/0.008511, allocations: 107.2 kB / 275.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001353/0.008646, allocations: 71.91 kB / 275.7 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.008648, allocations: 0 / 275.7 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.565e-05/0.008674, allocations: 19.62 kB / 275.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.009008, allocations: 53.19 kB / 275.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006478/0.009656, allocations: 359 kB / 276.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.536e-05/0.009702, allocations: 71.34 kB / 276.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.579e-05/0.009727, allocations: 8.969 kB / 276.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.551e-05/0.009763, allocations: 20.5 kB / 276.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.009764, allocations: 0 / 276.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of Templates: time 0.002884/0.01265, allocations: 1.193 MB / 277.4 MB, free: 12.36 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] 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","",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.8482475406490266]