Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001614/0.001614, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001804/0.001804, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 7.992 MB / 206.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.ClockedWithDiscreteTextbookController,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.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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 51.92 kB / 379 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3925, allocations: 53.36 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004089/0.3966, allocations: 2.045 MB / 434.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.3978, allocations: 0.5414 MB / 435 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.3979, allocations: 4 kB / 435 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.398, allocations: 15.8 kB / 435 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.727e-05/0.3981, allocations: 35.72 kB / 435 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004293/0.3986, allocations: 55.86 kB / 435.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.3988, allocations: 119.6 kB / 435.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.399, allocations: 37.61 kB / 435.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.617e-05/0.3991, allocations: 47.8 kB / 435.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.3992, allocations: 59.75 kB / 435.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/0.3992, allocations: 12 kB / 435.3 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.249e-05/0.3992, allocations: 8 kB / 435.3 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.243e-05/0.3993, allocations: 23.92 kB / 435.4 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.151e-05/0.3994, allocations: 63.67 kB / 435.4 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.3996, allocations: 132.6 kB / 435.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3996, allocations: 3.938 kB / 435.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3996, allocations: 0 / 435.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.3996, allocations: 0 / 435.6 MB, free: 3.75 MB / 334.1 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.0006653/0.4003, allocations: 345.8 kB / 435.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4003, allocations: 8.031 kB / 435.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.529e-05/0.4004, allocations: 20.83 kB / 435.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.4007, allocations: 150.3 kB / 436.1 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.4008, allocations: 12.38 kB / 436.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.848e-05/0.4008, allocations: 16.33 kB / 436.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005665/0.4014, allocations: 247.6 kB / 436.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.4014, allocations: 0 / 436.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.4014, allocations: 4 kB / 436.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.4014, allocations: 4 kB / 436.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.4017, allocations: 79.88 kB / 436.4 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007191/0.4024, allocations: 0.5466 MB / 437 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.4027, allocations: 143.9 kB / 437.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.4028, allocations: 66.64 kB / 437.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.4029, allocations: 7.984 kB / 437.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.4029, allocations: 38.5 kB / 437.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.4029, allocations: 0 / 437.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.000529/0.4035, allocations: 181.4 kB / 437.4 MB, free: 1.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.36e-05/0.4035, allocations: 110.8 kB / 437.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.4037, allocations: 126.1 kB / 437.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.4037, allocations: 29.7 kB / 437.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.18e-05/0.4038, allocations: 120 kB / 437.8 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.4038, allocations: 27.78 kB / 437.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.291e-05/0.4039, allocations: 34.09 kB / 437.8 MB, free: 1.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.404, allocations: 318.8 kB / 438.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.4041, allocations: 35.97 kB / 438.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.4043, allocations: 138.4 kB / 438.3 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.4046, allocations: 184.6 kB / 438.5 MB, free: 480 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4046, allocations: 0 / 438.5 MB, free: 480 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003871/0.405, allocations: 189.2 kB / 438.7 MB, free: 284 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.4051, allocations: 4 kB / 438.7 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4051, allocations: 4 kB / 438.7 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.566e-05/0.4051, allocations: 11.94 kB / 438.7 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.4053, allocations: 43.91 kB / 438.8 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.4053, allocations: 4.438 kB / 438.8 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.4054, allocations: 27.88 kB / 438.8 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.4054, allocations: 8 kB / 438.8 MB, free: 180 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001288/0.4056, allocations: 125.8 kB / 438.9 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.4057, allocations: 85.58 kB / 439 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.241e-05/0.4058, allocations: 16.66 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.4058, allocations: 7.984 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4058, allocations: 3.938 kB / 439 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.4058, allocations: 4 kB / 439 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.4061, allocations: 184.6 kB / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.4061, allocations: 0 / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.4063, allocations: 27.98 kB / 439.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.4063, allocations: 4 kB / 439.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.4063, allocations: 7.938 kB / 439.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.349e-06/0.4063, allocations: 3.938 kB / 439.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4063, allocations: 4 kB / 439.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006062/0.4069, allocations: 371 kB / 439.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.549e-05/0.4069, allocations: 8.219 kB / 439.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.4069, allocations: 11.94 kB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.4071, allocations: 11.98 kB / 439.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.4071, allocations: 7.984 kB / 439.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.4071, allocations: 12.06 kB / 439.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.837e-05/0.4072, allocations: 107.1 kB / 439.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4072, allocations: 0 / 439.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.4076, allocations: 27.95 kB / 439.8 MB, free: 15.09 MB / 350.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 (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.0001237/0.4077, allocations: 99.25 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003871/0.4081, allocations: 116.3 kB / 440 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4081, allocations: 3.938 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.662e-05/0.4082, allocations: 27.97 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.4087, allocations: 53.56 kB / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008643/0.4096, allocations: 408.5 kB / 440.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004189/0.41, allocations: 0.7162 MB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.687e-05/0.4101, allocations: 15.44 kB / 441.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4101, allocations: 0 / 441.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Templates: time 0.003928/0.414, allocations: 1.505 MB / 442.7 MB, free: 12.09 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.42377039603889]