Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002478/0.002478, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 173.3 MB / 200.8 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 267.3 MB, free: 6.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0001218/0.0001231, allocations: 6.25 kB / 267.3 MB, free: 6.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00355/0.003674, allocations: 2.008 MB / 269.3 MB, free: 4.758 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009882/0.004662, allocations: 0.4908 MB / 269.8 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.019e-05/0.004752, allocations: 3.938 kB / 269.8 MB, free: 4.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.004867, allocations: 19.8 kB / 269.8 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.414e-05/0.004941, allocations: 23.73 kB / 269.8 MB, free: 4.215 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.005214, allocations: 55.81 kB / 269.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001932/0.005407, allocations: 127.5 kB / 270 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.005543, allocations: 37.55 kB / 270.1 MB, free: 3.992 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.005673, allocations: 71.88 kB / 270.1 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.256e-05/0.005766, allocations: 51.81 kB / 270.2 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.005795, allocations: 8 kB / 270.2 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.57e-05/0.005821, allocations: 15.94 kB / 270.2 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.433e-05/0.005855, allocations: 23.91 kB / 270.2 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.57e-05/0.005921, allocations: 39.91 kB / 270.3 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.006153, allocations: 127.5 kB / 270.4 MB, free: 3.66 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/0.006163, allocations: 0 / 270.4 MB, free: 3.66 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.006164, allocations: 0 / 270.4 MB, free: 3.66 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.006168, allocations: 0 / 270.4 MB, free: 3.66 MB / 250.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.0006735/0.006842, allocations: 455.8 kB / 270.8 MB, free: 3.18 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.006877, allocations: 12.92 kB / 270.8 MB, free: 3.168 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.53e-05/0.006942, allocations: 28.84 kB / 270.9 MB, free: 3.141 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.007186, allocations: 152.4 kB / 271 MB, free: 2.965 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.007202, allocations: 4.375 kB / 271 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.007234, allocations: 12.38 kB / 271 MB, free: 2.949 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005122/0.007747, allocations: 252.1 kB / 271.3 MB, free: 2.672 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.007768, allocations: 12.11 kB / 271.3 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.007784, allocations: 4.375 kB / 271.3 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.007796, allocations: 7.938 kB / 271.3 MB, free: 2.648 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000228/0.008024, allocations: 71.89 kB / 271.4 MB, free: 2.578 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008304/0.008854, allocations: 0.6446 MB / 272 MB, free: 1.879 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003186/0.009173, allocations: 161.4 kB / 272.2 MB, free: 1.684 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.00932, allocations: 71.08 kB / 272.3 MB, free: 1.602 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.009349, allocations: 8 kB / 272.3 MB, free: 1.594 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.009386, allocations: 45.38 kB / 272.3 MB, free: 1.539 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 4.939e-06/0.009391, allocations: 3.984 kB / 272.3 MB, free: 1.535 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004739/0.009865, allocations: 165.4 kB / 272.5 MB, free: 1.367 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.621e-05/0.009961, allocations: 114.8 kB / 272.6 MB, free: 1.23 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.01014, allocations: 197.6 kB / 272.8 MB, free: 1.023 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.01017, allocations: 29.7 kB / 272.8 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.01028, allocations: 158.8 kB / 273 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.01031, allocations: 23.92 kB / 273 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.435e-05/0.01038, allocations: 43.3 kB / 273 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002626/0.01064, allocations: 0.5 MB / 273.5 MB, free: 248 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.78e-05/0.01072, allocations: 23.98 kB / 273.5 MB, free: 224 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.01086, allocations: 93.48 kB / 273.6 MB, free: 96 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.0111, allocations: 129.4 kB / 273.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.0111, allocations: 4 kB / 273.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000286/0.01139, allocations: 129.4 kB / 273.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.0114, allocations: 4 kB / 273.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.01141, allocations: 4 kB / 273.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.01143, allocations: 0 / 273.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.01157, allocations: 28.2 kB / 273.9 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.01158, allocations: 4 kB / 273.9 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.359e-05/0.01166, allocations: 15.88 kB / 273.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.01167, allocations: 4 kB / 274 MB, free: 15.74 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.000177/0.01185, allocations: 176.5 kB / 274.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.01204, allocations: 89.95 kB / 274.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.749e-05/0.01209, allocations: 12.78 kB / 274.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.0121, allocations: 4 kB / 274.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.0121, allocations: 0 / 274.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.01212, allocations: 7.984 kB / 274.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004268/0.01254, allocations: 160.5 kB / 274.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.01254, allocations: 0 / 274.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.01271, allocations: 27.98 kB / 274.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.01271, allocations: 0 / 274.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.01272, allocations: 7.938 kB / 274.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.01273, allocations: 4 kB / 274.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.01273, allocations: 3.938 kB / 274.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006035/0.01334, allocations: 466.4 kB / 274.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.011e-05/0.01337, allocations: 15.88 kB / 274.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/0.01339, allocations: 8.031 kB / 274.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.0135, allocations: 8 kB / 274.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.01355, allocations: 3.984 kB / 274.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.01356, allocations: 4 kB / 274.9 MB, free: 14.69 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001083/0.01367, allocations: 147.2 kB / 275.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01367, allocations: 0 / 275.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002991/0.01397, allocations: 27.89 kB / 275.1 MB, free: 14.52 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.0001441/0.01411, allocations: 103.2 kB / 275.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.01438, allocations: 95.52 kB / 275.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.01438, allocations: 0 / 275.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.342e-05/0.01447, allocations: 31.67 kB / 275.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005173/0.01498, allocations: 51.19 kB / 275.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007376/0.01572, allocations: 366.8 kB / 275.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.01587, allocations: 101.3 kB / 275.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.72e-05/0.0159, allocations: 4.5 kB / 275.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.315e-05/0.01595, allocations: 16.5 kB / 275.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01595, allocations: 0 / 275.9 MB, free: 13.69 MB / 266.7 MB Notification: Performance of Templates: time 0.005004/0.02095, allocations: 1.184 MB / 277 MB, free: 12.55 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.417113545932807]