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.0008767/0.0008767, allocations: 84 kB / 21.43 MB, free: 3.137 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.004108/0.004108, allocations: 141.6 kB / 24.68 MB, free: 8.891 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.8067/0.8067, allocations: 173.4 MB / 201.2 MB, free: 9.438 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.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.233e-06/1.233e-06, allocations: 0 / 319.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.096e-05, allocations: 2.281 kB / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.0022/0.002221, allocations: 1.965 MB / 321.6 MB, free: 3.898 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006484/0.002869, allocations: 482.6 kB / 322.1 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.911e-05/0.002958, allocations: 3.938 kB / 322.1 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.745e-05/0.003046, allocations: 15.86 kB / 322.1 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.357e-05/0.003099, allocations: 27.67 kB / 322.2 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.003339, allocations: 63.8 kB / 322.2 MB, free: 3.312 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.003479, allocations: 127.5 kB / 322.3 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.003591, allocations: 33.61 kB / 322.4 MB, free: 3.148 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.441e-05/0.003675, allocations: 79.8 kB / 322.4 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.505e-05/0.00373, allocations: 35.88 kB / 322.5 MB, free: 3.035 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.003755, allocations: 12 kB / 322.5 MB, free: 3.023 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.238e-05/0.003767, allocations: 11.94 kB / 322.5 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.003793, allocations: 35.84 kB / 322.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.09e-05/0.003834, allocations: 35.92 kB / 322.6 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.00398, allocations: 123.6 kB / 322.7 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.003983, allocations: 3.984 kB / 322.7 MB, free: 2.816 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.003984, allocations: 0 / 322.7 MB, free: 2.816 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.003988, allocations: 4 kB / 322.7 MB, free: 2.812 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0003886/0.004377, allocations: 349.8 kB / 323 MB, free: 2.441 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.004409, allocations: 12.92 kB / 323.1 MB, free: 2.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.004442, allocations: 16.84 kB / 323.1 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.004622, allocations: 156.3 kB / 323.2 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.004632, allocations: 8.375 kB / 323.2 MB, free: 2.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.004657, allocations: 12.38 kB / 323.2 MB, free: 2.219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00033/0.004987, allocations: 239.1 kB / 323.5 MB, free: 1.961 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.004997, allocations: 4.188 kB / 323.5 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.005007, allocations: 4.375 kB / 323.5 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.005013, allocations: 7.938 kB / 323.5 MB, free: 1.945 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.005154, allocations: 87.81 kB / 323.6 MB, free: 1.859 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003959/0.005549, allocations: 492.5 kB / 324.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/0.005717, allocations: 135.9 kB / 324.2 MB, free: 1.168 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.862e-05/0.005806, allocations: 74.64 kB / 324.3 MB, free: 1.086 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.005822, allocations: 0 / 324.3 MB, free: 1.086 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.005844, allocations: 50.47 kB / 324.3 MB, free: 1.027 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 9.81e-07/0.005845, allocations: 0 / 324.3 MB, free: 1.027 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002892/0.006134, allocations: 173.4 kB / 324.5 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.006186, allocations: 111.2 kB / 324.6 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.865e-05/0.006254, allocations: 126.1 kB / 324.7 MB, free: 0.582 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.006267, allocations: 37.64 kB / 324.8 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.64e-05/0.006313, allocations: 116.2 kB / 324.9 MB, free: 432 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.571e-05/0.006329, allocations: 23.8 kB / 324.9 MB, free: 408 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.00636, allocations: 25.7 kB / 324.9 MB, free: 376 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.907e-05/0.006429, allocations: 318.8 kB / 325.2 MB, free: 48 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.309e-05/0.006482, allocations: 35.91 kB / 325.3 MB, free: 12 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.06e-05/0.006563, allocations: 82.78 kB / 325.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.006683, allocations: 110.8 kB / 325.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.006685, allocations: 0 / 325.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001605/0.006845, allocations: 141.5 kB / 325.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.006856, allocations: 4 kB / 325.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.006862, allocations: 4 kB / 325.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.006872, allocations: 0 / 325.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.76e-05/0.00696, allocations: 31.92 kB / 325.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.006965, allocations: 3.984 kB / 325.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.477e-05/0.00701, allocations: 19.89 kB / 325.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.007018, allocations: 4 kB / 325.7 MB, free: 15.56 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 7.205e-05/0.00709, allocations: 129.9 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.297e-05/0.007173, allocations: 77.58 kB / 325.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.0072, allocations: 20.77 kB / 325.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.007203, allocations: 4 kB / 325.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.007207, allocations: 0 / 325.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.00721, allocations: 0 / 325.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001386/0.007349, allocations: 141.2 kB / 326 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.007351, allocations: 4 kB / 326 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.837e-05/0.007439, allocations: 35.91 kB / 326.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.007442, allocations: 0 / 326.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.007451, allocations: 8 kB / 326.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.007453, allocations: 4 kB / 326.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.007454, allocations: 0 / 326.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.007749, allocations: 371.5 kB / 326.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.623e-05/0.007766, allocations: 19.88 kB / 326.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.007778, allocations: 0 / 326.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.442e-05/0.007842, allocations: 4 kB / 326.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.984e-05/0.007872, allocations: 12.08 kB / 326.5 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.007877, allocations: 11.94 kB / 326.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.828e-05/0.007916, allocations: 106.6 kB / 326.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007916, allocations: 0 / 326.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000193/0.008109, allocations: 23.89 kB / 326.6 MB, free: 14.55 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 (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 7.894e-05/0.008187, allocations: 103.2 kB / 326.7 MB, free: 14.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000165/0.008352, allocations: 92.19 kB / 326.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.008354, allocations: 64 / 326.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.718e-05/0.008401, allocations: 35.91 kB / 326.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.008719, allocations: 44.42 kB / 326.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004468/0.009166, allocations: 371.4 kB / 327.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.994e-05/0.009225, allocations: 93.31 kB / 327.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.009255, allocations: 20.5 kB / 327.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.009256, allocations: 0 / 327.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of Templates: time 0.002008/0.01126, allocations: 1.475 MB / 328.8 MB, free: 12.27 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.914545967243612]