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.001449/0.001449, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001551/0.001551, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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.541/1.541, allocations: 177.2 MB / 204.3 MB, free: 9.191 MB / 190.1 MB " [Timeout remaining time 178] 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.834e-06/1.834e-06, allocations: 0 / 325 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.076e-05/5.259e-05, allocations: 6.219 kB / 325 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004016/0.004068, allocations: 1.992 MB / 327 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.005326, allocations: 0.5441 MB / 327.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.005458, allocations: 3.188 kB / 327.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.00559, allocations: 21.16 kB / 327.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001713/0.005761, allocations: 29.88 kB / 327.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.006045, allocations: 57.58 kB / 327.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.006263, allocations: 127.3 kB / 327.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.006436, allocations: 46.34 kB / 327.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.00657, allocations: 67.84 kB / 327.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.897e-05/0.006669, allocations: 46.44 kB / 328 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.676e-05/0.006715, allocations: 9.969 kB / 328 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.312e-05/0.006739, allocations: 10.38 kB / 328 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.954e-05/0.006778, allocations: 30.16 kB / 328 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.672e-05/0.006855, allocations: 39.92 kB / 328.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002706/0.007125, allocations: 130.4 kB / 328.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.007133, allocations: 4 kB / 328.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.007134, allocations: 1.312 kB / 328.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.007146, allocations: 0 / 328.2 MB, free: 14.55 MB / 302.1 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.0007548/0.007901, allocations: 349.7 kB / 328.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.007944, allocations: 9.219 kB / 328.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.231e-05/0.008006, allocations: 16.41 kB / 328.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.008284, allocations: 146.3 kB / 328.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.008299, allocations: 9.75 kB / 328.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/0.008341, allocations: 17.39 kB / 328.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000583/0.008924, allocations: 242.7 kB / 329 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.008942, allocations: 1.969 kB / 329 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.00896, allocations: 9.562 kB / 329 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.008971, allocations: 7.125 kB / 329 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.009248, allocations: 91.2 kB / 329.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006607/0.009908, allocations: 497 kB / 329.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003788/0.01029, allocations: 144.6 kB / 329.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.01046, allocations: 65.22 kB / 329.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.01049, allocations: 16.33 kB / 329.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.01052, allocations: 33.36 kB / 329.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.01053, allocations: 1.062 kB / 329.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006024/0.01113, allocations: 182.1 kB / 330 MB, free: 13.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.01123, allocations: 116.7 kB / 330.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.01137, allocations: 129.5 kB / 330.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/0.0114, allocations: 29.7 kB / 330.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.597e-05/0.01148, allocations: 118 kB / 330.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.01151, allocations: 25.3 kB / 330.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-05/0.01156, allocations: 26.67 kB / 330.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.01174, allocations: 324.6 kB / 330.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.01185, allocations: 26.23 kB / 330.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.01199, allocations: 75.91 kB / 330.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.01225, allocations: 116.2 kB / 330.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.01225, allocations: 0 / 330.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000332/0.01259, allocations: 140.5 kB / 331.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.0126, allocations: 6.141 kB / 331.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.01261, allocations: 2.281 kB / 331.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.01263, allocations: 3 kB / 331.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.01277, allocations: 30.11 kB / 331.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.01278, allocations: 4.156 kB / 331.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.535e-05/0.01287, allocations: 19.89 kB / 331.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.01288, allocations: 5.688 kB / 331.2 MB, free: 12.18 MB / 302.1 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.0001256/0.01301, allocations: 128.2 kB / 331.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.01317, allocations: 91.78 kB / 331.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.607e-05/0.01325, allocations: 18.64 kB / 331.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.01326, allocations: 6.312 kB / 331.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.01326, allocations: 1.156 kB / 331.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.01327, allocations: 2.953 kB / 331.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002516/0.01352, allocations: 140.2 kB / 331.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.01352, allocations: 2.125 kB / 331.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.01371, allocations: 34.25 kB / 331.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.227e-06/0.01371, allocations: 1.125 kB / 331.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.01373, allocations: 2.281 kB / 331.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.01373, allocations: 5.766 kB / 331.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.01374, allocations: 5 kB / 331.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000606/0.01434, allocations: 386.1 kB / 332 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.855e-05/0.01437, allocations: 13.81 kB / 332 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.0144, allocations: 2.281 kB / 332 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.01454, allocations: 11.53 kB / 332 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.01458, allocations: 4.547 kB / 332 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.01459, allocations: 7.859 kB / 332 MB, free: 11.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.403e-05/0.01468, allocations: 103.2 kB / 332.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01468, allocations: 0 / 332.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003185/0.015, allocations: 26.75 kB / 332.1 MB, free: 11.44 MB / 302.1 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 0.0001324/0.01513, allocations: 101.9 kB / 332.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003715/0.0155, allocations: 93.47 kB / 332.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.0155, allocations: 4.062 kB / 332.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.01561, allocations: 27.19 kB / 332.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.01614, allocations: 59.64 kB / 332.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007617/0.01691, allocations: 338.9 kB / 332.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/0.01702, allocations: 98.14 kB / 332.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.12e-05/0.01706, allocations: 12.38 kB / 332.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/0.0171, allocations: 14.25 kB / 332.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.0171, allocations: 1.031 kB / 332.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Templates: time 0.004694/0.0218, allocations: 1.197 MB / 334.1 MB, free: 10.32 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.36686148121953]