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.001389/0.001389, allocations: 115.9 kB / 20.43 MB, free: 1.449 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: 213.4 kB / 23.74 MB, free: 4.656 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.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.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 0.001568/0.001568, allocations: 47.92 kB / 378.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2361, allocations: 53.36 MB / 431.6 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003723/0.2398, allocations: 2.051 MB / 433.7 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.2409, allocations: 0.5726 MB / 434.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.877e-05/0.241, allocations: 3.938 kB / 434.2 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.2411, allocations: 19.8 kB / 434.2 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.2413, allocations: 35.72 kB / 434.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.2415, allocations: 51.81 kB / 434.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001933/0.2417, allocations: 119.6 kB / 434.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.2419, allocations: 49.55 kB / 434.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.242, allocations: 55.8 kB / 434.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.2421, allocations: 47.77 kB / 434.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.722e-05/0.2421, allocations: 12 kB / 434.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.332e-05/0.2422, allocations: 15.94 kB / 434.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.49e-05/0.2422, allocations: 35.84 kB / 434.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.137e-05/0.2423, allocations: 51.73 kB / 434.7 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.2425, allocations: 136.6 kB / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.2425, allocations: 0 / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2425, allocations: 4 kB / 434.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.2425, allocations: 0 / 434.9 MB, free: 3.688 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006743/0.2432, allocations: 361.8 kB / 435.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.2432, allocations: 8.031 kB / 435.2 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.98e-05/0.2433, allocations: 16.84 kB / 435.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.2436, allocations: 166.1 kB / 435.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.2436, allocations: 8.375 kB / 435.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.679e-05/0.2436, allocations: 12.38 kB / 435.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/0.2442, allocations: 238.9 kB / 435.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.2442, allocations: 0 / 435.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.2442, allocations: 8 kB / 435.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.2443, allocations: 7.984 kB / 435.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002903/0.2445, allocations: 91.86 kB / 435.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007372/0.2453, allocations: 0.5349 MB / 436.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003781/0.2457, allocations: 139.9 kB / 436.4 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.2458, allocations: 70.62 kB / 436.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.2459, allocations: 4 kB / 436.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.2459, allocations: 38.56 kB / 436.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.2459, allocations: 0 / 436.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005693/0.2465, allocations: 181.4 kB / 436.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.821e-05/0.2466, allocations: 118.8 kB / 436.8 MB, free: 1.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.2467, allocations: 126.2 kB / 436.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.2467, allocations: 34.08 kB / 437 MB, free: 1.328 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.496e-05/0.2468, allocations: 112.1 kB / 437.1 MB, free: 1.215 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.28e-05/0.2469, allocations: 27.78 kB / 437.1 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.2469, allocations: 37.7 kB / 437.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2471, allocations: 326.8 kB / 437.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2472, allocations: 35.97 kB / 437.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.2474, allocations: 135.3 kB / 437.6 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.2477, allocations: 193.5 kB / 437.8 MB, free: 372 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2477, allocations: 4 kB / 437.8 MB, free: 368 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003665/0.2481, allocations: 197.5 kB / 438 MB, free: 164 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.2481, allocations: 8.062 kB / 438 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2481, allocations: 4 kB / 438 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.2481, allocations: 4 kB / 438 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.2483, allocations: 47.91 kB / 438.1 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.2483, allocations: 7.938 kB / 438.1 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.2484, allocations: 27.88 kB / 438.1 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.2484, allocations: 8 kB / 438.1 MB, free: 56 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001247/0.2485, allocations: 137.7 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.2487, allocations: 89.64 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.334e-05/0.2487, allocations: 16.72 kB / 438.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2487, allocations: 0 / 438.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2488, allocations: 3.984 kB / 438.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2488, allocations: 4 kB / 438.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002644/0.249, allocations: 176.6 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.249, allocations: 240 / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.2492, allocations: 35.92 kB / 438.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2492, allocations: 0 / 438.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.2492, allocations: 8 kB / 438.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.2492, allocations: 7.984 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2492, allocations: 3.984 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005503/0.2498, allocations: 377.6 kB / 439 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.2498, allocations: 23.94 kB / 439 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.2498, allocations: 4 kB / 439 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.25, allocations: 11.98 kB / 439 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.25, allocations: 3.984 kB / 439 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.25, allocations: 4 kB / 439 MB, free: 15.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.733e-05/0.2501, allocations: 103.3 kB / 439.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2501, allocations: 0 / 439.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003225/0.2504, allocations: 24.09 kB / 439.1 MB, free: 14.96 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 (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.0001033/0.2505, allocations: 107.7 kB / 439.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003278/0.2508, allocations: 118.9 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2508, allocations: 0.9375 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.2509, allocations: 31.86 kB / 439.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004985/0.2514, allocations: 67.92 kB / 439.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007158/0.2522, allocations: 390.4 kB / 439.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.2525, allocations: 0.7162 MB / 440.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.516e-05/0.2525, allocations: 17.06 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.586e-05/0.2526, allocations: 11.44 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2526, allocations: 0 / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Templates: time 0.00433/0.2569, allocations: 1.329 MB / 441.9 MB, free: 12.14 MB / 350.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.477654417976737]