Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.00101/0.00101, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001047/0.001047, allocations: 161.4 kB / 24.55 MB, free: 24 kB / 18.57 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.9689/0.9689, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.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.ExactlyClockedWithDiscreteController,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.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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 272.9 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.774e-05/1.917e-05, allocations: 2.312 kB / 272.9 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002883/0.002902, allocations: 2.096 MB / 275 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.004007, allocations: 0.5841 MB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.004136, allocations: 4 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.004289, allocations: 23.73 kB / 275.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.004523, allocations: 39.64 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.00484, allocations: 63.8 kB / 275.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002147/0.005055, allocations: 135.5 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.005214, allocations: 38.06 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.005365, allocations: 75.86 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.005475, allocations: 43.81 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.287e-05/0.005508, allocations: 15.94 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.308e-05/0.005531, allocations: 12 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.21e-05/0.005613, allocations: 31.89 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.478e-05/0.005678, allocations: 47.84 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.005902, allocations: 99.58 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.005905, allocations: 0 / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005905, allocations: 0 / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.005911, allocations: 0 / 276.2 MB, free: 14.25 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.0006144/0.006525, allocations: 491.8 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.00657, allocations: 8.031 kB / 276.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.39e-05/0.006634, allocations: 32.8 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.00687, allocations: 161.2 kB / 276.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.006886, allocations: 12.31 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.386e-05/0.00693, allocations: 16.36 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/0.007367, allocations: 244.8 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.007381, allocations: 192 / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.007399, allocations: 4.375 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.007411, allocations: 7.938 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.007516, allocations: 47.89 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006236/0.00814, allocations: 0.6329 MB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.008425, allocations: 149.3 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.202e-05/0.008507, allocations: 63.06 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.008535, allocations: 4 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.008563, allocations: 37.39 kB / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.963e-06/0.008565, allocations: 0 / 278.1 MB, free: 12.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003076/0.008872, allocations: 129.4 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.008937, allocations: 114.8 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.009074, allocations: 212.3 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.009088, allocations: 29.64 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.85e-05/0.009166, allocations: 171.4 kB / 278.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.009193, allocations: 23.8 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.009237, allocations: 31.36 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.009367, allocations: 0.4961 MB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.746e-05/0.009395, allocations: 8 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.687e-05/0.009462, allocations: 93.42 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.984e-05/0.009562, allocations: 105.4 kB / 279.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.009567, allocations: 4 kB / 279.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001462/0.009713, allocations: 101.4 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.00973, allocations: 15.92 kB / 279.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.009736, allocations: 0 / 279.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.009757, allocations: 4 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.9e-05/0.009846, allocations: 24.2 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.009854, allocations: 8 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.983e-05/0.009904, allocations: 11.88 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.009914, allocations: 8 kB / 279.7 MB, free: 10.43 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.426e-05/0.009998, allocations: 164.5 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.01012, allocations: 85.53 kB / 279.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.043e-05/0.01018, allocations: 20.77 kB / 280 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.01019, allocations: 0 / 280 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.01019, allocations: 4 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.0102, allocations: 0 / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.0104, allocations: 164.5 kB / 280.1 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.01041, allocations: 0 / 280.1 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.01053, allocations: 31.98 kB / 280.1 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.01053, allocations: 0 / 280.1 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.01056, allocations: 4.234 kB / 280.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.01056, allocations: 7.938 kB / 280.2 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01056, allocations: 0 / 280.2 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.01089, allocations: 421.3 kB / 280.6 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.01094, allocations: 27.88 kB / 280.6 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.01097, allocations: 4 kB / 280.6 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.01107, allocations: 8.031 kB / 280.6 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.01111, allocations: 7.984 kB / 280.6 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.01112, allocations: 4 kB / 280.6 MB, free: 9.422 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.783e-05/0.01121, allocations: 160.6 kB / 280.8 MB, free: 9.266 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01121, allocations: 0 / 280.8 MB, free: 9.266 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002959/0.0115, allocations: 27.89 kB / 280.8 MB, free: 9.238 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 0.0001192/0.01162, allocations: 99.25 kB / 280.9 MB, free: 9.133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002024/0.01182, allocations: 67.91 kB / 281 MB, free: 9.062 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.01183, allocations: 4.062 kB / 281 MB, free: 9.059 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.597e-05/0.01186, allocations: 19.67 kB / 281 MB, free: 9.035 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.01237, allocations: 51.8 kB / 281 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009395/0.01331, allocations: 379.5 kB / 281.4 MB, free: 8.578 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.396e-05/0.01336, allocations: 79.33 kB / 281.5 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.989e-05/0.01339, allocations: 12.59 kB / 281.5 MB, free: 8.469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.965e-05/0.01343, allocations: 16.5 kB / 281.5 MB, free: 8.453 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01343, allocations: 0 / 281.5 MB, free: 8.453 MB / 266.7 MB Notification: Performance of Templates: time 0.003397/0.01683, allocations: 1.384 MB / 282.9 MB, free: 7.133 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.933642143383622]