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.0009273/0.0009273, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001275/0.002202, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007373/0.0007373, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009598/0.001697, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.081/1.081, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09541/1.177, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] 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 1.713e-06/1.713e-06, allocations: 0 / 244.7 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.666e-05/1.838e-05, allocations: 2.312 kB / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003477/0.003495, allocations: 2.119 MB / 246.8 MB, free: 12.13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.004545, allocations: 0.5761 MB / 247.4 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.004659, allocations: 4 kB / 247.4 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.082e-05/0.00474, allocations: 19.8 kB / 247.4 MB, free: 11.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.00485, allocations: 31.66 kB / 247.4 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.005083, allocations: 55.81 kB / 247.5 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.005275, allocations: 127.5 kB / 247.6 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.005405, allocations: 38.27 kB / 247.6 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.005553, allocations: 83.8 kB / 247.7 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.013e-05/0.005643, allocations: 35.89 kB / 247.8 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.365e-05/0.005677, allocations: 16 kB / 247.8 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.958e-05/0.005697, allocations: 8 kB / 247.8 MB, free: 11.13 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.955e-05/0.005736, allocations: 23.88 kB / 247.8 MB, free: 11.11 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.87e-05/0.005785, allocations: 39.86 kB / 247.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.005958, allocations: 83.67 kB / 247.9 MB, free: 10.99 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.337e-06/0.005967, allocations: 0 / 247.9 MB, free: 10.99 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005968, allocations: 0 / 247.9 MB, free: 10.99 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.005979, allocations: 3.938 kB / 247.9 MB, free: 10.98 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000527/0.006506, allocations: 348.1 kB / 248.3 MB, free: 10.62 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.006541, allocations: 8.031 kB / 248.3 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.819e-05/0.006599, allocations: 24.92 kB / 248.3 MB, free: 10.59 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.006829, allocations: 145.6 kB / 248.4 MB, free: 10.42 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.006844, allocations: 12.36 kB / 248.5 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.006882, allocations: 12.38 kB / 248.5 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.007219, allocations: 211.5 kB / 248.7 MB, free: 10.17 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.007234, allocations: 4.188 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.00725, allocations: 8.375 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.007258, allocations: 3.938 kB / 248.7 MB, free: 10.15 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.371e-05/0.007332, allocations: 31.92 kB / 248.7 MB, free: 10.12 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004779/0.007809, allocations: 453.9 kB / 249.2 MB, free: 9.637 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.008018, allocations: 107.9 kB / 249.3 MB, free: 9.504 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.507e-05/0.008073, allocations: 46.64 kB / 249.3 MB, free: 9.449 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.008094, allocations: 4 kB / 249.3 MB, free: 9.445 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.00812, allocations: 42.5 kB / 249.4 MB, free: 9.395 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.008122, allocations: 4 kB / 249.4 MB, free: 9.391 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002162/0.008338, allocations: 93.53 kB / 249.5 MB, free: 9.293 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.896e-05/0.008397, allocations: 110.8 kB / 249.6 MB, free: 9.16 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.208e-05/0.008479, allocations: 130.7 kB / 249.7 MB, free: 9.02 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.008495, allocations: 29.7 kB / 249.7 MB, free: 8.984 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.59e-05/0.008551, allocations: 112 kB / 249.8 MB, free: 8.871 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.008579, allocations: 23.78 kB / 249.9 MB, free: 8.848 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-05/0.008625, allocations: 25.7 kB / 249.9 MB, free: 8.816 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.411e-05/0.008719, allocations: 326.8 kB / 250.2 MB, free: 8.488 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.721e-05/0.008736, allocations: 4.125 kB / 250.2 MB, free: 8.484 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.774e-05/0.008784, allocations: 66.78 kB / 250.3 MB, free: 8.395 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.797e-05/0.008862, allocations: 82.72 kB / 250.4 MB, free: 8.289 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.008864, allocations: 0 / 250.4 MB, free: 8.289 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001188/0.008983, allocations: 89.48 kB / 250.4 MB, free: 8.195 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.008998, allocations: 10.33 kB / 250.4 MB, free: 8.188 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.009005, allocations: 4 kB / 250.5 MB, free: 8.184 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.009018, allocations: 0 / 250.5 MB, free: 8.184 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.009163, allocations: 32.16 kB / 250.5 MB, free: 8.152 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.009168, allocations: 4 kB / 250.5 MB, free: 8.148 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.68e-05/0.009225, allocations: 11.89 kB / 250.5 MB, free: 8.137 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.009233, allocations: 4 kB / 250.5 MB, free: 8.133 MB / 250.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 7.336e-05/0.009307, allocations: 122 kB / 250.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.764e-05/0.009404, allocations: 69.59 kB / 250.7 MB, free: 7.93 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.009451, allocations: 20.77 kB / 250.7 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.009455, allocations: 4 kB / 250.7 MB, free: 7.906 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.009457, allocations: 0 / 250.7 MB, free: 7.906 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.009461, allocations: 0 / 250.7 MB, free: 7.906 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.009653, allocations: 93.8 kB / 250.8 MB, free: 7.797 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.009655, allocations: 0 / 250.8 MB, free: 7.797 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.009797, allocations: 43.91 kB / 250.8 MB, free: 7.754 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.897e-05/0.009816, allocations: 15.84 kB / 250.9 MB, free: 7.738 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.009818, allocations: 4 kB / 250.9 MB, free: 7.734 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.009832, allocations: 4 kB / 250.9 MB, free: 7.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.009836, allocations: 3.984 kB / 250.9 MB, free: 7.727 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.009837, allocations: 0 / 250.9 MB, free: 7.727 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001667/0.01, allocations: 239.5 kB / 251.1 MB, free: 7.473 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.01003, allocations: 8 kB / 251.1 MB, free: 7.465 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.01013, allocations: 4 kB / 251.1 MB, free: 7.461 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.01017, allocations: 7.984 kB / 251.1 MB, free: 7.453 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.01017, allocations: 8.062 kB / 251.1 MB, free: 7.445 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.029e-05/0.01021, allocations: 28.62 kB / 251.2 MB, free: 7.418 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01021, allocations: 4.031 kB / 251.2 MB, free: 7.414 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002882/0.01049, allocations: 20 kB / 251.2 MB, free: 7.395 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 (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.000104/0.0106, allocations: 88.36 kB / 251.3 MB, free: 7.301 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.01072, allocations: 52.7 kB / 251.3 MB, free: 7.246 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.01074, allocations: 7.984 kB / 251.3 MB, free: 7.238 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.97e-05/0.01078, allocations: 25.39 kB / 251.4 MB, free: 7.211 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.01124, allocations: 196.4 kB / 251.6 MB, free: 6.988 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.01305, allocations: 291.9 kB / 251.8 MB, free: 6.668 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.336e-05/0.01311, allocations: 71.33 kB / 251.9 MB, free: 6.578 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.918e-05/0.01315, allocations: 12.97 kB / 251.9 MB, free: 6.566 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.875e-05/0.01324, allocations: 67.38 kB / 252 MB, free: 6.5 MB / 250.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01324, allocations: 0 / 252 MB, free: 6.5 MB / 250.7 MB Notification: Performance of Templates: time 0.003674/0.01692, allocations: 1.266 MB / 253.3 MB, free: 5.266 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] 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","",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.806944765150547]