Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001259/0.001259, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001868/0.003128, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007976/0.0007976, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001496/0.002294, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.9591/0.9591, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08941/1.048, allocations: 53.64 MB / 243.3 MB, free: 15.58 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.ClockedWithDiscreteTextbookController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.164e-05/2.326e-05, allocations: 6.25 kB / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.006026/0.006049, allocations: 2.115 MB / 246.6 MB, free: 12.22 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.00706, allocations: 0.5372 MB / 247.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.007161, allocations: 7.938 kB / 247.2 MB, free: 11.67 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.629e-05/0.007237, allocations: 15.8 kB / 247.2 MB, free: 11.65 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.993e-05/0.007307, allocations: 23.78 kB / 247.2 MB, free: 11.63 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.007535, allocations: 55.8 kB / 247.3 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001639/0.007699, allocations: 123.5 kB / 247.4 MB, free: 11.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.007822, allocations: 42.27 kB / 247.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.007953, allocations: 91.67 kB / 247.5 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.991e-05/0.008033, allocations: 39.88 kB / 247.5 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.007e-05/0.008063, allocations: 12 kB / 247.6 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.813e-05/0.008081, allocations: 12 kB / 247.6 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.002e-05/0.008111, allocations: 15.94 kB / 247.6 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.726e-05/0.008158, allocations: 35.88 kB / 247.6 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.008322, allocations: 75.69 kB / 247.7 MB, free: 11.13 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-05/0.008335, allocations: 0 / 247.7 MB, free: 11.13 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.008336, allocations: 0 / 247.7 MB, free: 11.13 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.008353, allocations: 4 kB / 247.7 MB, free: 11.13 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.003658/0.01201, allocations: 352 kB / 248 MB, free: 10.76 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.01205, allocations: 12.03 kB / 248 MB, free: 10.75 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.01209, allocations: 20.92 kB / 248.1 MB, free: 10.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.01227, allocations: 137.6 kB / 248.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.01228, allocations: 12.38 kB / 248.2 MB, free: 10.56 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.01231, allocations: 16.36 kB / 248.2 MB, free: 10.54 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002832/0.01259, allocations: 203.8 kB / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.0126, allocations: 192 / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.01261, allocations: 4.375 kB / 248.4 MB, free: 10.31 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.01262, allocations: 7.938 kB / 248.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.392e-05/0.01269, allocations: 39.84 kB / 248.5 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004152/0.0131, allocations: 450 kB / 248.9 MB, free: 9.789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.01324, allocations: 107.7 kB / 249 MB, free: 9.656 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.669e-05/0.01329, allocations: 38.52 kB / 249.1 MB, free: 9.609 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.01331, allocations: 4 kB / 249.1 MB, free: 9.605 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.01333, allocations: 38.64 kB / 249.1 MB, free: 9.559 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.01334, allocations: 0 / 249.1 MB, free: 9.559 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002027/0.01354, allocations: 93.53 kB / 249.2 MB, free: 9.461 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.0136, allocations: 110.8 kB / 249.3 MB, free: 9.328 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.4e-05/0.01367, allocations: 133.8 kB / 249.4 MB, free: 9.188 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.01368, allocations: 29.7 kB / 249.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.01373, allocations: 116 kB / 249.6 MB, free: 9.035 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.154e-05/0.01375, allocations: 27.78 kB / 249.6 MB, free: 9.008 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.872e-05/0.01379, allocations: 25.7 kB / 249.6 MB, free: 8.977 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.119e-05/0.01387, allocations: 326.8 kB / 250 MB, free: 8.648 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.61e-05/0.01389, allocations: 8 kB / 250 MB, free: 8.641 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.598e-05/0.01393, allocations: 66.72 kB / 250 MB, free: 8.551 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.561e-05/0.01401, allocations: 78.78 kB / 250.1 MB, free: 8.449 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.01401, allocations: 4 kB / 250.1 MB, free: 8.445 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001089/0.01412, allocations: 85.47 kB / 250.2 MB, free: 8.355 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.01414, allocations: 4 kB / 250.2 MB, free: 8.352 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.01414, allocations: 4 kB / 250.2 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.01415, allocations: 0 / 250.2 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.01432, allocations: 36.14 kB / 250.2 MB, free: 8.312 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.738e-06/0.01432, allocations: 4 kB / 250.2 MB, free: 8.309 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003059/0.01738, allocations: 15.83 kB / 250.2 MB, free: 8.293 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.046e-06/0.01739, allocations: 4 kB / 250.3 MB, free: 8.289 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 8.375e-05/0.01747, allocations: 121.8 kB / 250.4 MB, free: 8.16 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.916e-05/0.01756, allocations: 57.69 kB / 250.4 MB, free: 8.098 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.0176, allocations: 20.77 kB / 250.4 MB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.0176, allocations: 0 / 250.4 MB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.0176, allocations: 4 kB / 250.5 MB, free: 8.074 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.01761, allocations: 0 / 250.5 MB, free: 8.074 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.01777, allocations: 89.81 kB / 250.5 MB, free: 7.969 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.01778, allocations: 0 / 250.5 MB, free: 7.969 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.01791, allocations: 43.91 kB / 250.6 MB, free: 7.926 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.664e-05/0.01793, allocations: 15.84 kB / 250.6 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.01793, allocations: 4 kB / 250.6 MB, free: 7.906 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.01794, allocations: 0 / 250.6 MB, free: 7.906 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.01795, allocations: 0 / 250.6 MB, free: 7.906 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.01795, allocations: 4 kB / 250.6 MB, free: 7.902 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001609/0.01811, allocations: 239.8 kB / 250.8 MB, free: 7.648 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.01813, allocations: 11.98 kB / 250.9 MB, free: 7.637 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.938e-05/0.01822, allocations: 8.031 kB / 250.9 MB, free: 7.629 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.935e-05/0.01825, allocations: 3.984 kB / 250.9 MB, free: 7.625 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.01825, allocations: 11.98 kB / 250.9 MB, free: 7.613 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.767e-05/0.01828, allocations: 20.84 kB / 250.9 MB, free: 7.59 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01828, allocations: 0 / 250.9 MB, free: 7.59 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002365/0.01852, allocations: 20 kB / 250.9 MB, free: 7.57 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 9.236e-05/0.01861, allocations: 87.8 kB / 251 MB, free: 7.48 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.01871, allocations: 65.02 kB / 251.1 MB, free: 7.414 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.01872, allocations: 0 / 251.1 MB, free: 7.414 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.495e-05/0.01874, allocations: 24.78 kB / 251.1 MB, free: 7.387 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.01908, allocations: 50.7 kB / 251.1 MB, free: 7.34 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004953/0.02403, allocations: 299.6 kB / 251.4 MB, free: 7.016 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.71e-05/0.02409, allocations: 75.33 kB / 251.5 MB, free: 6.922 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.731e-05/0.02413, allocations: 8.969 kB / 251.5 MB, free: 6.91 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.012e-05/0.0242, allocations: 63.38 kB / 251.6 MB, free: 6.848 MB / 250.7 MB Notification: Performance of SimCode: time 9.22e-07/0.0242, allocations: 0 / 251.6 MB, free: 6.848 MB / 250.7 MB Notification: Performance of Templates: time 0.006534/0.03074, allocations: 1.285 MB / 252.9 MB, free: 5.621 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6376353353261948]