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.001088/0.001088, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.00106/0.00106, allocations: 171.9 kB / 24.82 MB, free: 9.273 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.9619/0.9619, allocations: 177 MB / 205.1 MB, free: 5.484 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 2.345e-06/2.345e-06, allocations: 0 / 273.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.468e-05/2.702e-05, allocations: 6.312 kB / 273.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002692/0.002719, allocations: 2.05 MB / 275.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009367/0.003655, allocations: 0.518 MB / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.003759, allocations: 3.938 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.003866, allocations: 19.8 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.503e-05/0.003931, allocations: 27.77 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002591/0.004191, allocations: 55.81 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.004334, allocations: 131.5 kB / 276.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.00448, allocations: 40.14 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.004616, allocations: 79.73 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.379e-05/0.00469, allocations: 39.89 kB / 276.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.24e-05/0.004712, allocations: 8 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.583e-05/0.004728, allocations: 12 kB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.124e-05/0.004779, allocations: 27.89 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.335e-05/0.004822, allocations: 35.92 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.004974, allocations: 83.66 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.004977, allocations: 0 / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.004979, allocations: 3.984 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.004983, allocations: 4 kB / 276.4 MB, free: 14.11 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.0004069/0.005389, allocations: 448.1 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.005426, allocations: 15.97 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.122e-05/0.005467, allocations: 32.78 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.005615, allocations: 156.4 kB / 277.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.005627, allocations: 12.38 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.00565, allocations: 16.31 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.005909, allocations: 212.8 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.005917, allocations: 192 / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.005927, allocations: 8.312 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.005934, allocations: 7.938 kB / 277.3 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.188e-05/0.005986, allocations: 35.89 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004691/0.006455, allocations: 0.629 MB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.006603, allocations: 129.4 kB / 278.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.995e-05/0.006653, allocations: 66.98 kB / 278.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.006676, allocations: 3.984 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.006701, allocations: 41.39 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.233e-06/0.006702, allocations: 0 / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002047/0.006907, allocations: 105.5 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.006963, allocations: 114.8 kB / 278.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.031e-05/0.007054, allocations: 182 kB / 278.6 MB, free: 11.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.007068, allocations: 37.77 kB / 278.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.259e-05/0.007131, allocations: 166.6 kB / 278.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.007148, allocations: 19.86 kB / 278.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.007189, allocations: 35.34 kB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.007296, allocations: 0.4883 MB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.026e-05/0.007316, allocations: 11.98 kB / 279.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.29e-05/0.007359, allocations: 73.48 kB / 279.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.457e-05/0.007434, allocations: 105.4 kB / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.007436, allocations: 0 / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001015/0.007537, allocations: 97.44 kB / 279.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.007551, allocations: 8 kB / 279.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.007557, allocations: 0 / 279.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.00757, allocations: 4 kB / 279.6 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.536e-05/0.007655, allocations: 28.2 kB / 279.7 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-06/0.007658, allocations: 0 / 279.7 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.04e-05/0.007699, allocations: 27.81 kB / 279.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.007705, allocations: 7.938 kB / 279.7 MB, free: 10.47 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.209e-05/0.007777, allocations: 164.5 kB / 279.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.473e-05/0.007852, allocations: 73.58 kB / 279.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.341e-05/0.007885, allocations: 8.781 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.007887, allocations: 4 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.00789, allocations: 0 / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.007898, allocations: 7.984 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.008041, allocations: 133 kB / 280.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.008042, allocations: 0 / 280.1 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.831e-05/0.008131, allocations: 31.98 kB / 280.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.008135, allocations: 4 kB / 280.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.008147, allocations: 4 kB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.00815, allocations: 3.938 kB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.008151, allocations: 4 kB / 280.1 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001723/0.008323, allocations: 342.7 kB / 280.5 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.402e-05/0.008337, allocations: 7.953 kB / 280.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.008352, allocations: 4 kB / 280.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.443e-05/0.008417, allocations: 12.03 kB / 280.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.712e-05/0.008444, allocations: 7.984 kB / 280.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.008449, allocations: 4 kB / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.144e-05/0.00849, allocations: 142.2 kB / 280.6 MB, free: 9.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.00849, allocations: 0 / 280.6 MB, free: 9.465 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001972/0.008687, allocations: 27.89 kB / 280.7 MB, free: 9.438 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 9.866e-05/0.008786, allocations: 107.2 kB / 280.8 MB, free: 9.324 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.008892, allocations: 71.66 kB / 280.8 MB, free: 9.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.008894, allocations: 0 / 280.8 MB, free: 9.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.463e-05/0.008919, allocations: 15.69 kB / 280.9 MB, free: 9.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.009262, allocations: 46.69 kB / 280.9 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006425/0.009904, allocations: 338.7 kB / 281.2 MB, free: 8.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.708e-05/0.009951, allocations: 79.27 kB / 281.3 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.7e-05/0.009978, allocations: 4.5 kB / 281.3 MB, free: 8.719 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.093e-05/0.01005, allocations: 86.19 kB / 281.4 MB, free: 8.633 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01005, allocations: 0 / 281.4 MB, free: 8.633 MB / 266.7 MB Notification: Performance of Templates: time 0.002931/0.01298, allocations: 1.282 MB / 282.7 MB, free: 7.41 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.6953261299058795]