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.0006897/0.0006897, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009574/0.001647, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006019/0.0006019, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008294/0.001431, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.7882/0.7882, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1384/0.9266, allocations: 52.48 MB / 238.5 MB, free: 7.621 MB / 234.7 MB " [Timeout remaining time 179] 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.402e-06/1.402e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.259e-05/1.4e-05, allocations: 2.312 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002378/0.002392, allocations: 2.086 MB / 241.8 MB, free: 4.293 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005183/0.00291, allocations: 0.5007 MB / 242.3 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.67e-05/0.002987, allocations: 10.94 kB / 242.3 MB, free: 3.781 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.466e-05/0.003042, allocations: 15.8 kB / 242.3 MB, free: 3.766 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.051e-05/0.003092, allocations: 23.78 kB / 242.4 MB, free: 3.742 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.003251, allocations: 59.8 kB / 242.4 MB, free: 3.684 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.003375, allocations: 127.5 kB / 242.5 MB, free: 3.559 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.667e-05/0.003471, allocations: 38.2 kB / 242.6 MB, free: 3.516 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.003572, allocations: 83.8 kB / 242.7 MB, free: 3.434 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.559e-05/0.003638, allocations: 40.69 kB / 242.7 MB, free: 3.395 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.568e-05/0.003714, allocations: 8 kB / 242.7 MB, free: 3.387 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.461e-05/0.003728, allocations: 13.22 kB / 242.7 MB, free: 3.375 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.715e-05/0.003755, allocations: 19.88 kB / 242.7 MB, free: 3.355 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.255e-05/0.003788, allocations: 31.94 kB / 242.8 MB, free: 3.324 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001288/0.003917, allocations: 84.53 kB / 242.9 MB, free: 3.242 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.003925, allocations: 4 kB / 242.9 MB, free: 3.238 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.003925, allocations: 0 / 242.9 MB, free: 3.238 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.003934, allocations: 0.6562 kB / 242.9 MB, free: 3.238 MB / 234.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.0003777/0.004311, allocations: 353 kB / 243.2 MB, free: 2.871 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.745e-05/0.004339, allocations: 8.031 kB / 243.2 MB, free: 2.863 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.004373, allocations: 22.7 kB / 243.2 MB, free: 2.844 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.004506, allocations: 133.6 kB / 243.4 MB, free: 2.688 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.769e-06/0.004516, allocations: 8.375 kB / 243.4 MB, free: 2.68 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.334e-05/0.004539, allocations: 12.38 kB / 243.4 MB, free: 2.668 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.004764, allocations: 223.1 kB / 243.6 MB, free: 2.43 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.004776, allocations: 8.188 kB / 243.6 MB, free: 2.422 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.004785, allocations: 4.375 kB / 243.6 MB, free: 2.418 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-06/0.004793, allocations: 7.938 kB / 243.6 MB, free: 2.41 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.569e-05/0.004838, allocations: 29.39 kB / 243.7 MB, free: 2.383 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003332/0.005172, allocations: 446 kB / 244.1 MB, free: 1.906 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.005278, allocations: 108.3 kB / 244.2 MB, free: 1.773 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.497e-05/0.005313, allocations: 43.11 kB / 244.2 MB, free: 1.723 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.005329, allocations: 4.609 kB / 244.2 MB, free: 1.719 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.977e-05/0.005349, allocations: 40.25 kB / 244.3 MB, free: 1.672 MB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.00535, allocations: 0 / 244.3 MB, free: 1.672 MB / 234.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001464/0.005496, allocations: 101.4 kB / 244.4 MB, free: 1.566 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.005539, allocations: 114.8 kB / 244.5 MB, free: 1.43 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.734e-05/0.005596, allocations: 131.8 kB / 244.6 MB, free: 1.289 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.437e-06/0.005605, allocations: 29.7 kB / 244.6 MB, free: 1.254 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.489e-05/0.00564, allocations: 108 kB / 244.8 MB, free: 1.145 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.005657, allocations: 24.8 kB / 244.8 MB, free: 1.121 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.8e-05/0.005685, allocations: 29.69 kB / 244.8 MB, free: 1.086 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.614e-05/0.005751, allocations: 326.8 kB / 245.1 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.114e-05/0.005762, allocations: 5 kB / 245.1 MB, free: 0.7539 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.441e-05/0.005796, allocations: 66.77 kB / 245.2 MB, free: 0.6641 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.927e-05/0.005856, allocations: 77.61 kB / 245.3 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.005858, allocations: 0 / 245.3 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.438e-05/0.005932, allocations: 88 kB / 245.4 MB, free: 488 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.005942, allocations: 8 kB / 245.4 MB, free: 480 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.005946, allocations: 0 / 245.4 MB, free: 480 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.005958, allocations: 4.969 kB / 245.4 MB, free: 476 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.006077, allocations: 31.92 kB / 245.4 MB, free: 444 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.006082, allocations: 4 kB / 245.4 MB, free: 440 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.356e-05/0.006115, allocations: 12.42 kB / 245.4 MB, free: 428 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.006121, allocations: 4.812 kB / 245.4 MB, free: 424 kB / 234.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 5.58e-05/0.006177, allocations: 127.4 kB / 245.5 MB, free: 288 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.517e-05/0.006232, allocations: 61.67 kB / 245.6 MB, free: 220 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.006259, allocations: 12.78 kB / 245.6 MB, free: 204 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.006261, allocations: 4 kB / 245.6 MB, free: 200 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.006262, allocations: 352 / 245.6 MB, free: 200 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.006265, allocations: 8 kB / 245.6 MB, free: 192 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.006376, allocations: 89.75 kB / 245.7 MB, free: 84 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.006377, allocations: 0 / 245.7 MB, free: 84 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.635e-05/0.006464, allocations: 43.92 kB / 245.8 MB, free: 40 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.091e-05/0.006475, allocations: 15.83 kB / 245.8 MB, free: 24 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.006476, allocations: 0 / 245.8 MB, free: 24 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.006488, allocations: 7.984 kB / 245.8 MB, free: 16 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.006489, allocations: 0 / 245.8 MB, free: 16 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.00649, allocations: 4 kB / 245.8 MB, free: 12 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.006618, allocations: 243.5 kB / 246 MB, free: 15.75 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.00663, allocations: 8.031 kB / 246 MB, free: 15.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.657e-05/0.006687, allocations: 4 kB / 246 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.384e-05/0.006711, allocations: 11.98 kB / 246.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.006714, allocations: 0 / 246.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.95e-05/0.006733, allocations: 24.08 kB / 246.1 MB, free: 15.71 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006733, allocations: 0 / 246.1 MB, free: 15.71 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001616/0.006895, allocations: 27.95 kB / 246.1 MB, free: 15.68 MB / 250.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 6.065e-05/0.006956, allocations: 80.59 kB / 246.2 MB, free: 15.59 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.264e-05/0.007038, allocations: 73.03 kB / 246.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.007044, allocations: 3.984 kB / 246.3 MB, free: 15.52 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.147e-05/0.007066, allocations: 12.86 kB / 246.3 MB, free: 15.5 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.007337, allocations: 187.3 kB / 246.5 MB, free: 15.29 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.008543, allocations: 300 kB / 246.7 MB, free: 14.96 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.176e-05/0.008584, allocations: 75.33 kB / 246.8 MB, free: 14.87 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.605e-05/0.00861, allocations: 8.969 kB / 246.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.885e-05/0.008669, allocations: 63.38 kB / 246.9 MB, free: 14.8 MB / 250.7 MB Notification: Performance of SimCode: time 6.61e-07/0.00867, allocations: 0 / 246.9 MB, free: 14.8 MB / 250.7 MB Notification: Performance of Templates: time 0.002695/0.01137, allocations: 1.229 MB / 248.1 MB, free: 13.63 MB / 250.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 -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.148971000686288]