Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 160.2 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9779/0.9779, allocations: 177 MB / 205.2 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.635e-06/2.635e-06, allocations: 0 / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.794e-05/4.058e-05, allocations: 2.312 kB / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00512/0.005161, allocations: 2.099 MB / 275.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.006583, allocations: 0.5372 MB / 276 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.00676, allocations: 4 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.006921, allocations: 15.8 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.007027, allocations: 23.73 kB / 276.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004668/0.007494, allocations: 59.8 kB / 276.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.007754, allocations: 123.5 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.007916, allocations: 42.25 kB / 276.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.008094, allocations: 71.8 kB / 276.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.0082, allocations: 47.88 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.635e-05/0.008236, allocations: 12 kB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.085e-05/0.008257, allocations: 8 kB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.012e-05/0.008297, allocations: 27.91 kB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.198e-05/0.008349, allocations: 31.92 kB / 276.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.008642, allocations: 99.58 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.008649, allocations: 0 / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.008651, allocations: 0 / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.008662, allocations: 0 / 276.6 MB, free: 14 MB / 266.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.0006629/0.009325, allocations: 316.5 kB / 276.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.123e-05/0.009386, allocations: 19.98 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.424e-05/0.00946, allocations: 16.92 kB / 276.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.00978, allocations: 153.5 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.009801, allocations: 8.375 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.009847, allocations: 12.38 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/0.01029, allocations: 211.7 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.01031, allocations: 192 / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.01033, allocations: 8.375 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.01034, allocations: 7.875 kB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.56e-05/0.01043, allocations: 31.92 kB / 277.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.01106, allocations: 453.9 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.01123, allocations: 107.6 kB / 277.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.462e-05/0.01128, allocations: 38.66 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.01132, allocations: 8 kB / 277.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.01135, allocations: 42.56 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 3.407e-06/0.01136, allocations: 0 / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002568/0.01161, allocations: 89.53 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.591e-05/0.01169, allocations: 110.8 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.01179, allocations: 145.8 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.01181, allocations: 29.7 kB / 278.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.77e-05/0.01187, allocations: 107.7 kB / 278.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.763e-05/0.01189, allocations: 27.83 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/0.01194, allocations: 21.72 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.357e-05/0.01204, allocations: 326.9 kB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.02e-05/0.01206, allocations: 8 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.383e-05/0.01211, allocations: 58.84 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.92e-05/0.0122, allocations: 78.72 kB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.0122, allocations: 0 / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001467/0.01235, allocations: 93.47 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.01237, allocations: 4 kB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.01238, allocations: 4 kB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.0124, allocations: 0 / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.01259, allocations: 27.98 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.0126, allocations: 4 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.429e-05/0.01266, allocations: 20.03 kB / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.01268, allocations: 12 kB / 279.1 MB, free: 11.18 MB / 266.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.26e-05/0.01276, allocations: 121.7 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.01287, allocations: 61.61 kB / 279.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.01291, allocations: 12.78 kB / 279.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.01292, allocations: 4 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.01292, allocations: 0 / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.01293, allocations: 0 / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.01313, allocations: 93.73 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.01313, allocations: 0 / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.0133, allocations: 35.98 kB / 279.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.01331, allocations: 4 kB / 279.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.01332, allocations: 4 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.01333, allocations: 0 / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.01333, allocations: 3.938 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002121/0.01354, allocations: 243.5 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.119e-05/0.01356, allocations: 11.94 kB / 279.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.01358, allocations: 8 kB / 279.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.01369, allocations: 0 / 279.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.228e-05/0.01374, allocations: 12.05 kB / 279.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.01375, allocations: 8 kB / 279.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.227e-05/0.01378, allocations: 24.86 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01378, allocations: 4 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002847/0.01406, allocations: 23.94 kB / 279.8 MB, free: 10.46 MB / 266.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 0.0001404/0.0142, allocations: 84.3 kB / 279.9 MB, free: 10.37 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001287/0.01433, allocations: 52.95 kB / 279.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.465e-06/0.01434, allocations: 4 kB / 279.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.112e-05/0.01437, allocations: 17.38 kB / 279.9 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.01479, allocations: 55.06 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009232/0.01571, allocations: 307.1 kB / 280.3 MB, free: 9.902 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.988e-05/0.01578, allocations: 71.34 kB / 280.4 MB, free: 9.812 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.376e-05/0.01584, allocations: 8.969 kB / 280.4 MB, free: 9.801 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.01595, allocations: 63.38 kB / 280.4 MB, free: 9.738 MB / 266.7 MB Notification: Performance of SimCode: time 1.833e-06/0.01595, allocations: 0 / 280.4 MB, free: 9.738 MB / 266.7 MB Notification: Performance of Templates: time 0.005047/0.021, allocations: 1.271 MB / 281.7 MB, free: 8.531 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.6996055538766086]