Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.000857/0.000857, allocations: 84 kB / 21.43 MB, free: 3.129 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.003434/0.003434, allocations: 143.4 kB / 24.68 MB, free: 8.906 MB / 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 0.819/0.819, allocations: 173.4 MB / 201.2 MB, free: 9.457 MB / 186.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.ClockedWithDiscreteController,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.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 319.7 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.422e-05/2.556e-05, allocations: 2.281 kB / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002153/0.002178, allocations: 1.964 MB / 321.6 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006136/0.002792, allocations: 0.5063 MB / 322.1 MB, free: 3.398 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.466e-05/0.002877, allocations: 4 kB / 322.1 MB, free: 3.395 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.345e-05/0.00297, allocations: 19.73 kB / 322.2 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.003089, allocations: 35.66 kB / 322.2 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.003263, allocations: 63.8 kB / 322.3 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.003396, allocations: 127.5 kB / 322.4 MB, free: 3.152 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.003517, allocations: 37.59 kB / 322.4 MB, free: 3.109 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.365e-05/0.003601, allocations: 79.8 kB / 322.5 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.066e-05/0.003662, allocations: 43.81 kB / 322.5 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.003687, allocations: 12 kB / 322.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.342e-05/0.0037, allocations: 12 kB / 322.6 MB, free: 2.965 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.296e-05/0.003723, allocations: 19.92 kB / 322.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.734e-05/0.003761, allocations: 43.91 kB / 322.6 MB, free: 2.902 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.003913, allocations: 131.5 kB / 322.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.003916, allocations: 0 / 322.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.003917, allocations: 0 / 322.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.003921, allocations: 0 / 322.8 MB, free: 2.773 MB / 282.7 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.0004098/0.00433, allocations: 353.8 kB / 323.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.004365, allocations: 12.92 kB / 323.1 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.338e-05/0.004398, allocations: 12.84 kB / 323.1 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.004582, allocations: 153.6 kB / 323.3 MB, free: 2.199 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.004593, allocations: 8.375 kB / 323.3 MB, free: 2.191 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.004618, allocations: 12.38 kB / 323.3 MB, free: 2.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.00495, allocations: 243.1 kB / 323.5 MB, free: 1.918 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.004963, allocations: 8.109 kB / 323.5 MB, free: 1.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.004974, allocations: 4.375 kB / 323.5 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.00498, allocations: 11.94 kB / 323.6 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.005117, allocations: 87.88 kB / 323.6 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000401/0.005518, allocations: 488.6 kB / 324.1 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.005741, allocations: 135.8 kB / 324.2 MB, free: 1.121 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.345e-05/0.005824, allocations: 74.62 kB / 324.3 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.005843, allocations: 4 kB / 324.3 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.005862, allocations: 42.5 kB / 324.4 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.005863, allocations: 0 / 324.4 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.000301/0.006164, allocations: 189.6 kB / 324.6 MB, free: 0.793 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.006216, allocations: 110.8 kB / 324.7 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.686e-05/0.006282, allocations: 129.5 kB / 324.8 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.006297, allocations: 29.7 kB / 324.8 MB, free: 500 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.736e-05/0.006345, allocations: 116 kB / 324.9 MB, free: 380 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.006362, allocations: 35.89 kB / 325 MB, free: 344 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/0.006392, allocations: 21.72 kB / 325 MB, free: 316 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.054e-05/0.006473, allocations: 326.8 kB / 325.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.41e-05/0.006527, allocations: 31.97 kB / 325.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.394e-05/0.006591, allocations: 74.84 kB / 325.4 MB, free: 15.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.006709, allocations: 114.7 kB / 325.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.006711, allocations: 0 / 325.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001527/0.006863, allocations: 141.8 kB / 325.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.006876, allocations: 12 kB / 325.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.006881, allocations: 0 / 325.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.006894, allocations: 4 kB / 325.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.33e-05/0.006957, allocations: 23.98 kB / 325.7 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.006964, allocations: 7.938 kB / 325.7 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.064e-05/0.007005, allocations: 19.88 kB / 325.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.007011, allocations: 8 kB / 325.7 MB, free: 15.5 MB / 298.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 6.4e-05/0.007075, allocations: 117.8 kB / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.103e-05/0.007166, allocations: 89.58 kB / 325.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.655e-05/0.007213, allocations: 20.77 kB / 326 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.007217, allocations: 7.938 kB / 326 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.00722, allocations: 0 / 326 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.007224, allocations: 4 kB / 326 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.007361, allocations: 137.1 kB / 326.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.007362, allocations: 0 / 326.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.223e-05/0.007455, allocations: 43.91 kB / 326.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.007457, allocations: 0 / 326.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.007467, allocations: 8 kB / 326.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.007468, allocations: 0 / 326.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.007469, allocations: 4 kB / 326.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002916/0.007761, allocations: 379.6 kB / 326.5 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.202e-05/0.007773, allocations: 15.88 kB / 326.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.007786, allocations: 4 kB / 326.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.498e-05/0.007851, allocations: 8 kB / 326.6 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.033e-05/0.007882, allocations: 11.92 kB / 326.6 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.007886, allocations: 4 kB / 326.6 MB, free: 14.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.622e-05/0.007923, allocations: 99.27 kB / 326.7 MB, free: 14.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007923, allocations: 4.062 kB / 326.7 MB, free: 14.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001853/0.008108, allocations: 27.88 kB / 326.7 MB, free: 14.46 MB / 298.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 (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 7.294e-05/0.008181, allocations: 103.2 kB / 326.8 MB, free: 14.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000163/0.008344, allocations: 91.81 kB / 326.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.008346, allocations: 448 / 326.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.623e-05/0.008392, allocations: 27.98 kB / 326.9 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.008705, allocations: 63.83 kB / 327 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004224/0.009127, allocations: 357.4 kB / 327.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.529e-05/0.009193, allocations: 101.3 kB / 327.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.056e-05/0.009223, allocations: 16.5 kB / 327.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.009224, allocations: 4 kB / 327.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of Templates: time 0.001993/0.01122, allocations: 1.516 MB / 329 MB, free: 12.14 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 3.873133041895926]