Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001123/0.001123, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.007223/0.007223, allocations: 163.2 kB / 24.99 MB, free: 8.801 MB / 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.9985/0.9985, allocations: 177 MB / 205.2 MB, free: 5.59 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 273 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.886e-05, allocations: 9.062 kB / 273 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002335/0.002354, allocations: 2.085 MB / 275 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000779/0.003133, allocations: 0.5919 MB / 275.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.003247, allocations: 3.938 kB / 275.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.003359, allocations: 19.8 kB / 275.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.003508, allocations: 35.66 kB / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002131/0.003721, allocations: 59.81 kB / 275.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.003869, allocations: 131.5 kB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.003989, allocations: 46.08 kB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.15e-05/0.004081, allocations: 75.75 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.075e-05/0.004152, allocations: 43.88 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.004177, allocations: 16 kB / 276.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.572e-05/0.004192, allocations: 12 kB / 276.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.197e-05/0.004244, allocations: 31.84 kB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.381e-05/0.004288, allocations: 47.84 kB / 276.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.004445, allocations: 103.6 kB / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.004447, allocations: 0 / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.004447, allocations: 0 / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.004451, allocations: 3.938 kB / 276.3 MB, free: 14.46 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004588/0.00491, allocations: 471.9 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.004945, allocations: 11.98 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.004997, allocations: 40.8 kB / 276.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001802/0.005177, allocations: 164.3 kB / 276.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.005189, allocations: 8.375 kB / 276.9 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.005218, allocations: 20.38 kB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003356/0.005554, allocations: 240.8 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.005565, allocations: 192 / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.005579, allocations: 8.375 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.005589, allocations: 7.922 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.724e-05/0.005676, allocations: 51.12 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004505/0.006126, allocations: 0.6445 MB / 277.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002009/0.006327, allocations: 141.3 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.77e-05/0.006385, allocations: 55.14 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.006403, allocations: 7.984 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.006424, allocations: 41.39 kB / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.172e-06/0.006425, allocations: 0 / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002232/0.006648, allocations: 129.4 kB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.006701, allocations: 114.8 kB / 278.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.006805, allocations: 213.8 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.758e-06/0.006814, allocations: 25.7 kB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.938e-05/0.006874, allocations: 163.3 kB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.006893, allocations: 23.78 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.006925, allocations: 31.38 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.007038, allocations: 0.4961 MB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.169e-05/0.007059, allocations: 12.12 kB / 279.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.901e-05/0.007108, allocations: 89.48 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.458e-05/0.007183, allocations: 101.4 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.007184, allocations: 0 / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001062/0.007291, allocations: 109.4 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.007301, allocations: 8 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.007305, allocations: 0 / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.007317, allocations: 4 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.29e-05/0.00738, allocations: 23.98 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.007387, allocations: 7.938 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.459e-05/0.007422, allocations: 11.88 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.00743, allocations: 8 kB / 279.7 MB, free: 10.67 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 6.874e-05/0.007498, allocations: 168.8 kB / 279.9 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.045e-05/0.007589, allocations: 85.53 kB / 279.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.007634, allocations: 20.72 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.007635, allocations: 0 / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.00764, allocations: 4 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.007643, allocations: 3.984 kB / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.007791, allocations: 156.5 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.007792, allocations: 240 / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.918e-05/0.007881, allocations: 35.92 kB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.007883, allocations: 3.984 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.007896, allocations: 8 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.007897, allocations: 4 kB / 280.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.0079, allocations: 7.984 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.00813, allocations: 410.6 kB / 280.6 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.628e-05/0.008166, allocations: 27.88 kB / 280.6 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.008181, allocations: 7.938 kB / 280.6 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.397e-05/0.008245, allocations: 7.984 kB / 280.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.53e-05/0.00827, allocations: 4 kB / 280.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.008275, allocations: 4 kB / 280.6 MB, free: 9.648 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.956e-05/0.008335, allocations: 156 kB / 280.8 MB, free: 9.496 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008335, allocations: 4.031 kB / 280.8 MB, free: 9.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001923/0.008527, allocations: 27.89 kB / 280.8 MB, free: 9.465 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.432e-05/0.008591, allocations: 99.25 kB / 280.9 MB, free: 9.359 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.008698, allocations: 67.53 kB / 281 MB, free: 9.289 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.0087, allocations: 0 / 281 MB, free: 9.289 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.368e-05/0.008723, allocations: 23.61 kB / 281 MB, free: 9.262 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.009035, allocations: 54.94 kB / 281.1 MB, free: 9.211 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005702/0.009605, allocations: 375.5 kB / 281.4 MB, free: 8.809 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.674e-05/0.009652, allocations: 79.27 kB / 281.5 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.726e-05/0.009679, allocations: 12.64 kB / 281.5 MB, free: 8.699 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.929e-05/0.009708, allocations: 20.5 kB / 281.5 MB, free: 8.68 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.009709, allocations: 0 / 281.5 MB, free: 8.68 MB / 266.7 MB Notification: Performance of Templates: time 0.002711/0.01242, allocations: 1.359 MB / 282.9 MB, free: 7.379 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.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.9692083240952343]