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.001035/0.001035, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009886/0.0009886, allocations: 170.3 kB / 24.91 MB, free: 8.723 MB / 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.9527/0.9527, allocations: 177.1 MB / 205.3 MB, free: 5.102 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.713e-06/1.713e-06, allocations: 0 / 273.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.096e-05/3.267e-05, allocations: 5.406 kB / 273.5 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002682/0.002714, allocations: 2.135 MB / 275.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000942/0.003656, allocations: 0.5956 MB / 276.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.003772, allocations: 7.938 kB / 276.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.003883, allocations: 19.8 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.004057, allocations: 35.72 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.00431, allocations: 67.73 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.004464, allocations: 127.5 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.004573, allocations: 46.73 kB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.00468, allocations: 79.73 kB / 276.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.975e-05/0.00475, allocations: 43.88 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.004773, allocations: 12 kB / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.549e-05/0.004788, allocations: 12 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.787e-05/0.004836, allocations: 31.86 kB / 276.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.922e-05/0.004875, allocations: 43.91 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.005036, allocations: 103.6 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.005039, allocations: 3.938 kB / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.00504, allocations: 0 / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.858e-06/0.005044, allocations: 0 / 276.8 MB, free: 13.78 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.0003765/0.00542, allocations: 356.2 kB / 277.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/0.005449, allocations: 8.031 kB / 277.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.005486, allocations: 20.92 kB / 277.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.005655, allocations: 161.5 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.005665, allocations: 8.375 kB / 277.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.005692, allocations: 16.33 kB / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.005953, allocations: 219.7 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.005964, allocations: 192 / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-06/0.005973, allocations: 8.375 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.005979, allocations: 7.938 kB / 277.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.969e-05/0.006029, allocations: 31.92 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.006673, allocations: 453.9 kB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.006843, allocations: 107.9 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.316e-05/0.006887, allocations: 46.64 kB / 278.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.006905, allocations: 4 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.006926, allocations: 38.56 kB / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.964e-06/0.006928, allocations: 4 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001706/0.007098, allocations: 93.72 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.007149, allocations: 110.8 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.951e-05/0.007228, allocations: 153.2 kB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.007238, allocations: 29.64 kB / 278.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.29e-05/0.007281, allocations: 116.5 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.007297, allocations: 23.77 kB / 278.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.693e-05/0.007334, allocations: 33.7 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.432e-05/0.007408, allocations: 318.8 kB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.694e-05/0.007425, allocations: 15.92 kB / 279.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.471e-05/0.007459, allocations: 58.98 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.469e-05/0.007524, allocations: 82.69 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.007526, allocations: 0 / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.969e-05/0.007616, allocations: 81.61 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.00763, allocations: 15.92 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.007635, allocations: 0 / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.007647, allocations: 4 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.007762, allocations: 34.94 kB / 279.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.946e-06/0.007765, allocations: 0 / 279.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.38e-05/0.007809, allocations: 19.83 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.007814, allocations: 4 kB / 279.4 MB, free: 10.88 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 6.893e-05/0.007883, allocations: 124.8 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.407e-05/0.007957, allocations: 65.61 kB / 279.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.236e-05/0.008, allocations: 20.77 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.008004, allocations: 4 kB / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.008007, allocations: 4 kB / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.00801, allocations: 0 / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.008138, allocations: 101.7 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.00814, allocations: 0 / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.008242, allocations: 35.98 kB / 279.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.008246, allocations: 3.984 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.008258, allocations: 4 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.008259, allocations: 4 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.00826, allocations: 3.938 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.008397, allocations: 239.5 kB / 280 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.008435, allocations: 27.84 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.008448, allocations: 3.984 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.392e-05/0.008512, allocations: 8 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.807e-05/0.00854, allocations: 7.984 kB / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.008545, allocations: 0 / 280.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.294e-05/0.008578, allocations: 38.36 kB / 280.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008578, allocations: 0 / 280.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001681/0.008746, allocations: 20.03 kB / 280.1 MB, free: 10.11 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 8.529e-05/0.008831, allocations: 100.2 kB / 280.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.418e-05/0.008925, allocations: 60.7 kB / 280.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.00893, allocations: 4 kB / 280.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.797e-05/0.008948, allocations: 12.86 kB / 280.3 MB, free: 9.926 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.009229, allocations: 56.44 kB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005893/0.009818, allocations: 355.1 kB / 280.7 MB, free: 9.492 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.616e-05/0.009864, allocations: 71.33 kB / 280.8 MB, free: 9.402 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.674e-05/0.009901, allocations: 12.64 kB / 280.8 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.016e-05/0.009971, allocations: 71.36 kB / 280.9 MB, free: 9.316 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.009972, allocations: 0 / 280.9 MB, free: 9.316 MB / 266.7 MB Notification: Performance of Templates: time 0.003221/0.01319, allocations: 1.454 MB / 282.3 MB, free: 7.93 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 -s gbode -gbm=radauIIA3 -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.638779317960143]