Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001168/0.001168, allocations: 83.67 kB / 21.7 MB, free: 2.848 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.001246/0.001246, allocations: 161.6 kB / 24.99 MB, free: 9.234 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.9997/0.9997, allocations: 177 MB / 205.2 MB, free: 5.582 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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 273 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.458e-05/2.614e-05, allocations: 2.312 kB / 273 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002684/0.00271, allocations: 2.105 MB / 275.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007124/0.003423, allocations: 0.5258 MB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.003525, allocations: 7.938 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.003646, allocations: 15.8 kB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.968e-05/0.003706, allocations: 31.72 kB / 275.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.003962, allocations: 59.86 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000155/0.004117, allocations: 135.4 kB / 275.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.004245, allocations: 41.97 kB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.361e-05/0.004339, allocations: 71.86 kB / 276 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.024e-05/0.004409, allocations: 43.83 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.004435, allocations: 11.98 kB / 276 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.443e-05/0.00445, allocations: 12 kB / 276 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.438e-05/0.004474, allocations: 23.92 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.893e-05/0.004513, allocations: 35.91 kB / 276.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.004664, allocations: 99.58 kB / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.004666, allocations: 4 kB / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.004667, allocations: 0 / 276.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.004672, allocations: 0 / 276.2 MB, free: 14.54 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004606/0.005132, allocations: 452 kB / 276.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.00517, allocations: 15.98 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.935e-05/0.005219, allocations: 24.84 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.00539, allocations: 156.4 kB / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.005402, allocations: 16.38 kB / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.00543, allocations: 16.33 kB / 276.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.005735, allocations: 216.8 kB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.005753, allocations: 4.188 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.005765, allocations: 4.375 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.005774, allocations: 7.938 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.27e-05/0.005847, allocations: 42.86 kB / 277.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004749/0.006322, allocations: 0.6367 MB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001947/0.006517, allocations: 141.3 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.894e-05/0.006575, allocations: 51.14 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.006594, allocations: 4 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.006615, allocations: 49.31 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.006616, allocations: 0 / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002144/0.006831, allocations: 117.8 kB / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.691e-05/0.006888, allocations: 118.9 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.26e-05/0.00698, allocations: 198 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.006994, allocations: 33.7 kB / 278.5 MB, free: 12.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.987e-05/0.007054, allocations: 154.8 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.007071, allocations: 27.78 kB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.129e-05/0.007102, allocations: 27.38 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.007211, allocations: 0.4922 MB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.474e-05/0.007236, allocations: 15.98 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.055e-05/0.007286, allocations: 89.12 kB / 279.3 MB, free: 11.15 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.495e-05/0.007371, allocations: 105.4 kB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.007374, allocations: 4 kB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001064/0.00748, allocations: 105.4 kB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.007493, allocations: 8.219 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.007497, allocations: 8.172 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.007511, allocations: 4 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.281e-05/0.007584, allocations: 27.92 kB / 279.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.007592, allocations: 4 kB / 279.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.602e-05/0.007628, allocations: 11.94 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.007635, allocations: 7.984 kB / 279.5 MB, free: 10.83 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.349e-05/0.007719, allocations: 168.5 kB / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.00783, allocations: 85.53 kB / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.00786, allocations: 24.77 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.007861, allocations: 4 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.007865, allocations: 0 / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.007869, allocations: 4 kB / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.008014, allocations: 144.5 kB / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.008015, allocations: 3.938 kB / 280 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.008123, allocations: 47.97 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.008125, allocations: 0 / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.008141, allocations: 4 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.008142, allocations: 0 / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.008144, allocations: 3.984 kB / 280 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.008411, allocations: 430.5 kB / 280.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.407e-05/0.008426, allocations: 11.91 kB / 280.4 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.008439, allocations: 0 / 280.4 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.438e-05/0.008504, allocations: 11.98 kB / 280.5 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.008543, allocations: 4 kB / 280.5 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.008549, allocations: 7.984 kB / 280.5 MB, free: 9.816 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.87e-05/0.008598, allocations: 143.2 kB / 280.6 MB, free: 9.676 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008598, allocations: 0 / 280.6 MB, free: 9.676 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001918/0.00879, allocations: 27.88 kB / 280.6 MB, free: 9.648 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.242e-05/0.008862, allocations: 107.2 kB / 280.7 MB, free: 9.535 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.00898, allocations: 67.59 kB / 280.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.008981, allocations: 0 / 280.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.417e-05/0.009005, allocations: 23.61 kB / 280.8 MB, free: 9.438 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.00932, allocations: 55.03 kB / 280.9 MB, free: 9.383 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007012/0.01002, allocations: 371.1 kB / 281.2 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.877e-05/0.01007, allocations: 71.34 kB / 281.3 MB, free: 8.895 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.839e-05/0.0101, allocations: 12.91 kB / 281.3 MB, free: 8.883 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.273e-05/0.01013, allocations: 12.5 kB / 281.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01013, allocations: 0 / 281.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of Templates: time 0.002887/0.01302, allocations: 1.349 MB / 282.7 MB, free: 7.57 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.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.725093701854348]