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.0007882/0.0007882, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003127/0.003127, allocations: 160.8 kB / 24.7 MB, free: 9.441 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.8318/0.8318, allocations: 177 MB / 204.9 MB, free: 5.715 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.863e-06/1.863e-06, allocations: 0 / 325.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.207e-05/2.394e-05, allocations: 7.125 kB / 325.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002179/0.002203, allocations: 1.984 MB / 327.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006395/0.002842, allocations: 0.5142 MB / 328.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.365e-05/0.002926, allocations: 7.938 kB / 328.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.415e-05/0.00302, allocations: 11.86 kB / 328.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.202e-05/0.003082, allocations: 35.66 kB / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.003323, allocations: 51.81 kB / 328.4 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.003458, allocations: 127.5 kB / 328.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.00358, allocations: 45.39 kB / 328.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.352e-05/0.003664, allocations: 67.86 kB / 328.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.855e-05/0.003722, allocations: 47.77 kB / 328.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.003748, allocations: 12 kB / 328.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.362e-05/0.003762, allocations: 8 kB / 328.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.585e-05/0.003788, allocations: 27.84 kB / 328.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.721e-05/0.003825, allocations: 39.91 kB / 328.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.003977, allocations: 123.6 kB / 328.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.00398, allocations: 0 / 328.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.00398, allocations: 3.938 kB / 328.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.003984, allocations: 4 kB / 328.9 MB, free: 12.26 MB / 298.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.0004224/0.004407, allocations: 349.8 kB / 329.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.00444, allocations: 15.98 kB / 329.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.004471, allocations: 12.84 kB / 329.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.004639, allocations: 153.5 kB / 329.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.00465, allocations: 8.375 kB / 329.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.664e-05/0.004676, allocations: 16.33 kB / 329.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/0.005009, allocations: 234.7 kB / 329.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.00502, allocations: 192 / 329.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.005033, allocations: 12.38 kB / 329.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.00504, allocations: 7.938 kB / 329.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.005176, allocations: 79.88 kB / 329.7 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003943/0.00557, allocations: 0.4888 MB / 330.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.005737, allocations: 139.9 kB / 330.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.378e-05/0.005821, allocations: 66.62 kB / 330.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.005842, allocations: 7.938 kB / 330.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.00586, allocations: 38.56 kB / 330.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.005861, allocations: 0 / 330.5 MB, free: 10.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003078/0.006169, allocations: 177.4 kB / 330.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.00622, allocations: 107.2 kB / 330.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.895e-05/0.006288, allocations: 130.1 kB / 330.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.006298, allocations: 25.7 kB / 330.9 MB, free: 10.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.755e-05/0.006346, allocations: 120 kB / 331 MB, free: 9.887 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.006361, allocations: 23.78 kB / 331 MB, free: 9.863 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.081e-05/0.006392, allocations: 25.72 kB / 331.1 MB, free: 9.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.771e-05/0.006469, allocations: 326.8 kB / 331.4 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.021e-05/0.00652, allocations: 28.11 kB / 331.4 MB, free: 9.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.687e-05/0.006586, allocations: 82.72 kB / 331.5 MB, free: 9.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.006705, allocations: 118.8 kB / 331.6 MB, free: 9.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.006706, allocations: 0 / 331.6 MB, free: 9.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001496/0.006856, allocations: 129.4 kB / 331.7 MB, free: 9.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.006867, allocations: 8 kB / 331.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.006873, allocations: 3.984 kB / 331.7 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.006883, allocations: 4.219 kB / 331.7 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.249e-05/0.006976, allocations: 31.92 kB / 331.8 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.00698, allocations: 4 kB / 331.8 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.222e-05/0.007023, allocations: 27.81 kB / 331.8 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.007029, allocations: 4 kB / 331.8 MB, free: 9.016 MB / 298.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.364e-05/0.007093, allocations: 121.8 kB / 331.9 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.006e-05/0.007173, allocations: 81.58 kB / 332 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.636e-05/0.007199, allocations: 13.02 kB / 332 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.007204, allocations: 3.984 kB / 332 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.007208, allocations: 4 kB / 332 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.00721, allocations: 4 kB / 332 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.007344, allocations: 141.2 kB / 332.2 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.007345, allocations: 0 / 332.2 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.572e-05/0.00743, allocations: 35.92 kB / 332.2 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.007432, allocations: 0 / 332.2 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.007441, allocations: 8 kB / 332.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.007442, allocations: 0 / 332.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.007443, allocations: 0 / 332.2 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.007734, allocations: 383.4 kB / 332.6 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.34e-05/0.007747, allocations: 15.94 kB / 332.6 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.007761, allocations: 4 kB / 332.6 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.54e-05/0.007826, allocations: 11.98 kB / 332.6 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.895e-05/0.007855, allocations: 4 kB / 332.6 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.007862, allocations: 4.094 kB / 332.6 MB, free: 8.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.38e-05/0.007906, allocations: 109.7 kB / 332.7 MB, free: 8.031 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007906, allocations: 0 / 332.7 MB, free: 8.031 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001886/0.008095, allocations: 31.81 kB / 332.8 MB, free: 8 MB / 298.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 6.776e-05/0.008163, allocations: 103.3 kB / 332.9 MB, free: 7.887 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001655/0.008328, allocations: 91.81 kB / 333 MB, free: 7.797 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-06/0.008329, allocations: 0 / 333 MB, free: 7.797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.609e-05/0.008375, allocations: 27.92 kB / 333 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.008688, allocations: 44.5 kB / 333 MB, free: 7.727 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004342/0.009122, allocations: 364.6 kB / 333.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.581e-05/0.009188, allocations: 101.2 kB / 333.5 MB, free: 7.211 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.009219, allocations: 12.5 kB / 333.5 MB, free: 7.199 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.009219, allocations: 3.938 kB / 333.5 MB, free: 7.195 MB / 298.7 MB Notification: Performance of Templates: time 0.001973/0.01119, allocations: 1.493 MB / 335 MB, free: 5.711 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.2373306453228]