Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.00103/0.00103, allocations: 85.89 kB / 21.42 MB, free: 3.074 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.001096/0.001096, allocations: 161.8 kB / 24.82 MB, free: 8.402 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 1.02/1.02, allocations: 177 MB / 205.1 MB, free: 5.043 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 273.3 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.427e-05/1.615e-05, allocations: 2.312 kB / 273.3 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00244/0.002456, allocations: 2.073 MB / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009843/0.00344, allocations: 0.588 MB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.00356, allocations: 7.938 kB / 276 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.003678, allocations: 15.8 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.003854, allocations: 35.72 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.004101, allocations: 75.72 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.004264, allocations: 131.4 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.004384, allocations: 42.11 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.004498, allocations: 71.86 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.974e-05/0.004578, allocations: 47.81 kB / 276.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.004604, allocations: 12 kB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.886e-05/0.004622, allocations: 8 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.32e-05/0.004676, allocations: 31.91 kB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.663e-05/0.004722, allocations: 43.84 kB / 276.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.004894, allocations: 115.5 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.004896, allocations: 0 / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.004896, allocations: 0 / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.0049, allocations: 0 / 276.6 MB, free: 13.75 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004863/0.005386, allocations: 471.9 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.005427, allocations: 19.97 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/0.005476, allocations: 28.8 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.005649, allocations: 168.3 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.005662, allocations: 12.38 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.005689, allocations: 12.38 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.005995, allocations: 235.9 kB / 277.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.006005, allocations: 192 / 277.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.006018, allocations: 8.359 kB / 277.5 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.006028, allocations: 7.938 kB / 277.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.949e-05/0.006087, allocations: 39.91 kB / 277.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004643/0.006552, allocations: 0.6445 MB / 278.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.006747, allocations: 137.1 kB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.652e-05/0.006803, allocations: 55.12 kB / 278.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.006829, allocations: 8.125 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.006853, allocations: 37.39 kB / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.006854, allocations: 0 / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002301/0.007084, allocations: 129.4 kB / 278.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.00714, allocations: 110.8 kB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.007255, allocations: 209.8 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.007266, allocations: 25.7 kB / 278.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.16e-05/0.007338, allocations: 163.3 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.007361, allocations: 31.77 kB / 279.1 MB, free: 10.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.007403, allocations: 27.38 kB / 279.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.007534, allocations: 0.4961 MB / 279.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.71e-05/0.007551, allocations: 4 kB / 279.6 MB, free: 10.42 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.007e-05/0.007611, allocations: 89.41 kB / 279.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.029e-05/0.007702, allocations: 105.5 kB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.007703, allocations: 3.938 kB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001243/0.007828, allocations: 101.6 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.007839, allocations: 8.031 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.007845, allocations: 4 kB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.007859, allocations: 4 kB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.687e-05/0.007936, allocations: 27.92 kB / 280 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.007939, allocations: 0 / 280 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.023e-05/0.00799, allocations: 19.88 kB / 280 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.007996, allocations: 4 kB / 280 MB, free: 9.988 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.202e-05/0.008078, allocations: 160.5 kB / 280.1 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.008182, allocations: 89.52 kB / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.168e-05/0.008234, allocations: 20.78 kB / 280.2 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.008236, allocations: 0 / 280.2 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.008238, allocations: 0 / 280.2 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.008242, allocations: 4 kB / 280.3 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.008427, allocations: 133.1 kB / 280.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.008429, allocations: 0 / 280.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.008534, allocations: 31.98 kB / 280.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.008536, allocations: 0 / 280.4 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.008549, allocations: 3.984 kB / 280.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.008552, allocations: 4 kB / 280.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.008553, allocations: 0 / 280.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001992/0.008752, allocations: 354.9 kB / 280.8 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.591e-05/0.008798, allocations: 31.81 kB / 280.8 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.008817, allocations: 4 kB / 280.8 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.933e-05/0.008916, allocations: 7.984 kB / 280.8 MB, free: 9.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.008946, allocations: 8 kB / 280.8 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.008952, allocations: 3.984 kB / 280.8 MB, free: 9.078 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.385e-05/0.009016, allocations: 148 kB / 281 MB, free: 8.934 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009016, allocations: 0 / 281 MB, free: 8.934 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002762/0.009292, allocations: 20 kB / 281 MB, free: 8.914 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 (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.95e-05/0.009372, allocations: 115.2 kB / 281.1 MB, free: 8.793 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001092/0.009481, allocations: 67.61 kB / 281.2 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.009482, allocations: 0 / 281.2 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.498e-05/0.009507, allocations: 19.69 kB / 281.2 MB, free: 8.699 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.009914, allocations: 58.84 kB / 281.2 MB, free: 8.645 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006532/0.01057, allocations: 376 kB / 281.6 MB, free: 8.242 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.801e-05/0.01063, allocations: 79.33 kB / 281.7 MB, free: 8.145 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.691e-05/0.01066, allocations: 12.64 kB / 281.7 MB, free: 8.133 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.217e-05/0.01074, allocations: 94.19 kB / 281.8 MB, free: 8.039 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01075, allocations: 0 / 281.8 MB, free: 8.039 MB / 266.7 MB Notification: Performance of Templates: time 0.003542/0.01429, allocations: 1.467 MB / 283.3 MB, free: 6.637 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.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.7296295650303364]