Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.005704/0.005704, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001896/0.001896, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9254/0.9254, allocations: 177 MB / 204.8 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.484e-05/2.643e-05, allocations: 5.125 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002964/0.00299, allocations: 2.058 MB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008957/0.003886, allocations: 0.5258 MB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.003997, allocations: 3.938 kB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.004125, allocations: 19.8 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.574e-05/0.004201, allocations: 19.78 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.004506, allocations: 63.81 kB / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.004714, allocations: 123.5 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.004875, allocations: 37.59 kB / 275.7 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.005009, allocations: 79.75 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.84e-05/0.005097, allocations: 39.88 kB / 275.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.005124, allocations: 8 kB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.648e-05/0.005141, allocations: 12 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.281e-05/0.005174, allocations: 27.91 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.53e-05/0.005219, allocations: 35.91 kB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.0054, allocations: 87.66 kB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.005405, allocations: 4 kB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.005407, allocations: 3.938 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.005413, allocations: 0 / 276 MB, free: 14.3 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000499/0.005912, allocations: 448.1 kB / 276.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.005953, allocations: 11.98 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.979e-05/0.006013, allocations: 24.84 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.006233, allocations: 164.3 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.006245, allocations: 8.375 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.335e-05/0.006278, allocations: 20.38 kB / 276.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004014/0.00668, allocations: 220.8 kB / 276.9 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.006697, allocations: 192 / 276.9 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.006717, allocations: 8.375 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.006731, allocations: 7.938 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.614e-05/0.006828, allocations: 39.91 kB / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.00745, allocations: 0.629 MB / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.007614, allocations: 141.3 kB / 277.7 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.783e-05/0.007671, allocations: 59.12 kB / 277.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.007693, allocations: 4 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.007716, allocations: 41.39 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.007717, allocations: 0 / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002379/0.007955, allocations: 117.5 kB / 277.9 MB, free: 12.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.008023, allocations: 115.1 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.447e-05/0.008117, allocations: 193.2 kB / 278.2 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.008129, allocations: 33.7 kB / 278.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.724e-05/0.008196, allocations: 158.7 kB / 278.4 MB, free: 11.63 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.008214, allocations: 23.84 kB / 278.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.008252, allocations: 27.38 kB / 278.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.00837, allocations: 0.4922 MB / 279 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.867e-05/0.008399, allocations: 11.98 kB / 279 MB, free: 11.06 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.44e-05/0.008453, allocations: 85.44 kB / 279.1 MB, free: 10.94 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.448e-05/0.008548, allocations: 105.4 kB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.008551, allocations: 0 / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001227/0.008674, allocations: 105.4 kB / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.008692, allocations: 6.656 kB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.008699, allocations: 4.219 kB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.008716, allocations: 4 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.008826, allocations: 23.98 kB / 279.3 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.008835, allocations: 7.938 kB / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.893e-05/0.008874, allocations: 15.83 kB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.008882, allocations: 8 kB / 279.3 MB, free: 10.63 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 9.039e-05/0.008973, allocations: 168.6 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.012e-05/0.009063, allocations: 81.75 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.14e-05/0.009094, allocations: 16.78 kB / 279.6 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.009099, allocations: 7.922 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.009103, allocations: 8 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.009107, allocations: 0 / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001514/0.009259, allocations: 148.4 kB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.00926, allocations: 0 / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.632e-05/0.009357, allocations: 39.91 kB / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.009359, allocations: 0 / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.009377, allocations: 4 kB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.009379, allocations: 0 / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.009381, allocations: 4 kB / 279.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/0.00964, allocations: 398.7 kB / 280.2 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.457e-05/0.009654, allocations: 19.94 kB / 280.2 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.009673, allocations: 4 kB / 280.2 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.959e-05/0.009733, allocations: 7.938 kB / 280.2 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.795e-05/0.009771, allocations: 7.984 kB / 280.2 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-06/0.009775, allocations: 4 kB / 280.2 MB, free: 9.652 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.002e-05/0.009825, allocations: 139.2 kB / 280.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009825, allocations: 0 / 280.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002098/0.01004, allocations: 31.88 kB / 280.4 MB, free: 9.484 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 (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.0001036/0.01014, allocations: 103.2 kB / 280.5 MB, free: 9.375 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.01029, allocations: 67.53 kB / 280.6 MB, free: 9.305 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.01029, allocations: 0 / 280.6 MB, free: 9.305 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.328e-05/0.01032, allocations: 15.69 kB / 280.6 MB, free: 9.285 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.01078, allocations: 46.77 kB / 280.6 MB, free: 9.238 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008205/0.0116, allocations: 343.1 kB / 281 MB, free: 8.867 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.027e-05/0.01166, allocations: 79.27 kB / 281 MB, free: 8.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.447e-05/0.01169, allocations: 4.5 kB / 281.1 MB, free: 8.766 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.226e-05/0.01174, allocations: 16.5 kB / 281.1 MB, free: 8.746 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.01174, allocations: 3.938 kB / 281.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of Templates: time 0.003723/0.01546, allocations: 1.24 MB / 282.3 MB, free: 7.555 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.7026973268948495]