Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001438/0.001438, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.001739/0.001739, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 18.57 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.045/1.045, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscreteController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 273 MB, free: 1.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.168e-05/2.328e-05, allocations: 9.688 kB / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002564/0.002587, allocations: 2.05 MB / 275.1 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009444/0.003532, allocations: 0.5491 MB / 275.6 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.00365, allocations: 7.938 kB / 275.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.003767, allocations: 11.81 kB / 275.7 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.003909, allocations: 27.72 kB / 275.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.004105, allocations: 59.8 kB / 275.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00016/0.004265, allocations: 131.5 kB / 275.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.004399, allocations: 33.61 kB / 275.9 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.0045, allocations: 79.8 kB / 276 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.383e-05/0.004584, allocations: 43.88 kB / 276 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.004611, allocations: 8 kB / 276 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.691e-05/0.004628, allocations: 12 kB / 276 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.997e-05/0.004658, allocations: 23.91 kB / 276.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.079e-05/0.004708, allocations: 39.86 kB / 276.1 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.004875, allocations: 91.58 kB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.004878, allocations: 4 kB / 276.2 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.004879, allocations: 4 kB / 276.2 MB, free: 14.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.004884, allocations: 4 kB / 276.2 MB, free: 14.68 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004878/0.005372, allocations: 448.1 kB / 276.6 MB, free: 14.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.005414, allocations: 12.03 kB / 276.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.238e-05/0.005466, allocations: 24.84 kB / 276.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.005677, allocations: 152.4 kB / 276.8 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.00569, allocations: 8.375 kB / 276.8 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.005726, allocations: 16.36 kB / 276.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003769/0.006103, allocations: 248.7 kB / 277.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.006115, allocations: 192 / 277.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.006132, allocations: 8.375 kB / 277.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.006142, allocations: 3.938 kB / 277.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.266e-05/0.006224, allocations: 47.84 kB / 277.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005271/0.006752, allocations: 0.6368 MB / 277.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.006988, allocations: 137.3 kB / 277.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.935e-05/0.007057, allocations: 55.14 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.007081, allocations: 7.984 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.007104, allocations: 41.33 kB / 278 MB, free: 12.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.007106, allocations: 0 / 278 MB, free: 12.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002391/0.007345, allocations: 125.5 kB / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.007405, allocations: 110.8 kB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.767e-05/0.007503, allocations: 189.9 kB / 278.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.007514, allocations: 25.7 kB / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.945e-05/0.007583, allocations: 163 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.007602, allocations: 23.8 kB / 278.6 MB, free: 11.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.007638, allocations: 35.36 kB / 278.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.007771, allocations: 0.4961 MB / 279.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.322e-05/0.007794, allocations: 4 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.149e-05/0.007856, allocations: 85.42 kB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.251e-05/0.007948, allocations: 105.5 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.007951, allocations: 0 / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001142/0.008065, allocations: 105.4 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.008081, allocations: 6.5 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.008086, allocations: 4 kB / 279.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.008099, allocations: 4 kB / 279.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.484e-05/0.008174, allocations: 32.14 kB / 279.5 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.008182, allocations: 15.92 kB / 279.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.627e-05/0.008218, allocations: 15.88 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.008225, allocations: 4 kB / 279.6 MB, free: 10.97 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 8.192e-05/0.008307, allocations: 164.5 kB / 279.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.946e-05/0.008407, allocations: 81.59 kB / 279.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.663e-05/0.008473, allocations: 24.7 kB / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.008476, allocations: 0 / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.008481, allocations: 4 kB / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.008485, allocations: 0 / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.008664, allocations: 148.5 kB / 280 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.008666, allocations: 0 / 280 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.008772, allocations: 35.97 kB / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.008775, allocations: 0 / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.008791, allocations: 0 / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.008793, allocations: 4 kB / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.008794, allocations: 0 / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002713/0.009065, allocations: 430.4 kB / 280.4 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.473e-05/0.00908, allocations: 11.89 kB / 280.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.009096, allocations: 4 kB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.607e-05/0.009162, allocations: 20 kB / 280.5 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.009196, allocations: 0 / 280.5 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.009202, allocations: 4 kB / 280.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.411e-05/0.009256, allocations: 147.2 kB / 280.6 MB, free: 9.844 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009256, allocations: 0 / 280.6 MB, free: 9.844 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001946/0.009451, allocations: 19.94 kB / 280.6 MB, free: 9.824 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 6.858e-05/0.009519, allocations: 107.2 kB / 280.7 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001207/0.00964, allocations: 59.91 kB / 280.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.009642, allocations: 8.125 kB / 280.8 MB, free: 9.641 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.377e-05/0.009665, allocations: 19.62 kB / 280.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.01, allocations: 51.25 kB / 280.9 MB, free: 9.566 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006612/0.01066, allocations: 354.7 kB / 281.2 MB, free: 9.184 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.939e-05/0.01072, allocations: 71.34 kB / 281.3 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.341e-05/0.01075, allocations: 12.97 kB / 281.3 MB, free: 9.082 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.933e-05/0.01079, allocations: 16.5 kB / 281.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of SimCode: time 1.333e-06/0.0108, allocations: 0 / 281.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of Templates: time 0.00314/0.01394, allocations: 1.209 MB / 282.5 MB, free: 7.887 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.998009549919516]