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.001379/0.001379, allocations: 92.27 kB / 20.96 MB, free: 3.449 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.001424/0.001424, allocations: 156.9 kB / 24.26 MB, free: 152 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 1.493/1.493, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.743e-06/1.743e-06, allocations: 0 / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.574e-05/2.748e-05, allocations: 2.312 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004011/0.004039, allocations: 1.986 MB / 274.2 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.005147, allocations: 0.5025 MB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.75e-05/0.005244, allocations: 7.938 kB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.005387, allocations: 19.86 kB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.021e-05/0.005467, allocations: 23.72 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003259/0.005793, allocations: 63.73 kB / 274.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.006006, allocations: 119.6 kB / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.006159, allocations: 45.52 kB / 274.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.006306, allocations: 67.88 kB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.601e-05/0.006402, allocations: 39.88 kB / 275 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/0.006432, allocations: 12 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.632e-05/0.006458, allocations: 16 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.568e-05/0.006494, allocations: 19.92 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.255e-05/0.006566, allocations: 43.84 kB / 275.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.006788, allocations: 123.5 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.00679, allocations: 4 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.006791, allocations: 0 / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.006796, allocations: 0 / 275.3 MB, free: 14.73 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.0006835/0.007479, allocations: 353.8 kB / 275.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.007518, allocations: 11.98 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.407e-05/0.007592, allocations: 24.84 kB / 275.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.007867, allocations: 153.5 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.007886, allocations: 12.38 kB / 275.8 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.27e-05/0.007929, allocations: 16.33 kB / 275.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/0.008483, allocations: 231.1 kB / 276 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.008496, allocations: 8.188 kB / 276 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.008514, allocations: 4.375 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.008525, allocations: 11.88 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002626/0.008787, allocations: 79.92 kB / 276.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007219/0.009509, allocations: 0.4927 MB / 276.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.009818, allocations: 135.9 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.009996, allocations: 74.56 kB / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.01003, allocations: 8 kB / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.01007, allocations: 34.56 kB / 276.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.01007, allocations: 0 / 276.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005886/0.01066, allocations: 181.4 kB / 277.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.01076, allocations: 110.8 kB / 277.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.0109, allocations: 129.1 kB / 277.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.01093, allocations: 33.83 kB / 277.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.553e-05/0.01102, allocations: 112.1 kB / 277.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.386e-05/0.01107, allocations: 27.78 kB / 277.5 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.918e-05/0.01111, allocations: 21.72 kB / 277.5 MB, free: 12.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.01131, allocations: 326.8 kB / 277.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.01143, allocations: 31.92 kB / 277.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.01158, allocations: 82.78 kB / 277.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/0.01185, allocations: 118.7 kB / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01185, allocations: 0 / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003425/0.01219, allocations: 137.5 kB / 278.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.01221, allocations: 4 kB / 278.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.01221, allocations: 4 kB / 278.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.01224, allocations: 11.92 kB / 278.2 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.01238, allocations: 23.98 kB / 278.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.01239, allocations: 4 kB / 278.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.92e-05/0.01248, allocations: 23.81 kB / 278.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.01249, allocations: 4 kB / 278.2 MB, free: 11.45 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 0.0001278/0.01262, allocations: 130 kB / 278.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.01279, allocations: 85.58 kB / 278.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.299e-05/0.01283, allocations: 16.78 kB / 278.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.01284, allocations: 4 kB / 278.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.01284, allocations: 0 / 278.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.01284, allocations: 0 / 278.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002584/0.0131, allocations: 145.2 kB / 278.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.0131, allocations: 0 / 278.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.01328, allocations: 31.98 kB / 278.6 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.01328, allocations: 0 / 278.6 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.01329, allocations: 8 kB / 278.7 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.01329, allocations: 0 / 278.7 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01329, allocations: 0 / 278.7 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006139/0.01391, allocations: 383.7 kB / 279 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.01394, allocations: 19.86 kB / 279 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.01397, allocations: 4 kB / 279.1 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.01411, allocations: 11.98 kB / 279.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.01415, allocations: 0 / 279.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.01415, allocations: 8.062 kB / 279.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.655e-05/0.01424, allocations: 103.2 kB / 279.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01424, allocations: 4 kB / 279.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002954/0.01454, allocations: 23.94 kB / 279.2 MB, free: 10.43 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.0001262/0.01466, allocations: 99.19 kB / 279.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003125/0.01497, allocations: 96.12 kB / 279.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.01498, allocations: 8.062 kB / 279.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.962e-05/0.01508, allocations: 23.98 kB / 279.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.01556, allocations: 57.86 kB / 279.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007016/0.01626, allocations: 335.1 kB / 279.8 MB, free: 9.789 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.0164, allocations: 105.2 kB / 279.9 MB, free: 9.664 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.603e-05/0.01643, allocations: 4.5 kB / 279.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.457e-05/0.01648, allocations: 16.5 kB / 279.9 MB, free: 9.645 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01648, allocations: 0 / 279.9 MB, free: 9.645 MB / 266.7 MB Notification: Performance of Templates: time 0.004488/0.02097, allocations: 1.192 MB / 281.1 MB, free: 8.508 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=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.225640558986925]