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.00128/0.00128, allocations: 85.58 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001435/0.001435, allocations: 158.3 kB / 23.95 MB, free: 4.168 MB / 14.72 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.439/1.439, allocations: 177 MB / 204.1 MB, free: 9.137 MB / 190.1 MB " [Timeout remaining time 178] 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.182e-06/1.182e-06, allocations: 0 / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.167e-05/2.285e-05, allocations: 2.281 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003246/0.003269, allocations: 2.001 MB / 327 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.004524, allocations: 0.5865 MB / 327.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.004645, allocations: 6.594 kB / 327.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.004771, allocations: 18.91 kB / 327.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.004966, allocations: 41.02 kB / 327.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003046/0.005271, allocations: 70.83 kB / 327.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.005499, allocations: 139.8 kB / 327.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.005651, allocations: 34.86 kB / 327.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.005791, allocations: 71.89 kB / 328 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.649e-05/0.005887, allocations: 42.78 kB / 328 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.69e-05/0.005924, allocations: 10 kB / 328 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.839e-05/0.005952, allocations: 10.72 kB / 328 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.205e-05/0.006025, allocations: 33.8 kB / 328 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.812e-05/0.006093, allocations: 45.58 kB / 328.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002593/0.006352, allocations: 150.5 kB / 328.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.006354, allocations: 1.125 kB / 328.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.006355, allocations: 0 / 328.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.006359, allocations: 0 / 328.2 MB, free: 14.41 MB / 302.1 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.000686/0.007045, allocations: 378.5 kB / 328.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.007081, allocations: 13.14 kB / 328.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.675e-05/0.007127, allocations: 20.69 kB / 328.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.007454, allocations: 172.9 kB / 328.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.007471, allocations: 10.12 kB / 328.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.64e-05/0.007507, allocations: 13.72 kB / 328.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005379/0.008045, allocations: 254.5 kB / 329.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.008059, allocations: 192 / 329.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.008084, allocations: 5.781 kB / 329.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.008093, allocations: 12.09 kB / 329.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/0.008361, allocations: 82.67 kB / 329.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006626/0.009023, allocations: 0.4978 MB / 329.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.009416, allocations: 140.9 kB / 329.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.009593, allocations: 70.3 kB / 329.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.009623, allocations: 7.141 kB / 329.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.009654, allocations: 37.48 kB / 329.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.009655, allocations: 1.406 kB / 329.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000582/0.01024, allocations: 183.4 kB / 330.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.219e-05/0.01033, allocations: 115.9 kB / 330.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.01051, allocations: 159 kB / 330.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.01054, allocations: 25.7 kB / 330.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.026e-05/0.01062, allocations: 113.8 kB / 330.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/0.01068, allocations: 30.88 kB / 330.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.826e-05/0.01072, allocations: 27.17 kB / 330.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.0109, allocations: 324.6 kB / 330.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.01101, allocations: 26.77 kB / 330.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.01115, allocations: 83.86 kB / 331 MB, free: 12.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/0.01141, allocations: 116 kB / 331.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01141, allocations: 1.094 kB / 331.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003113/0.01173, allocations: 136.3 kB / 331.2 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.01174, allocations: 9.781 kB / 331.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.01175, allocations: 2.219 kB / 331.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.01176, allocations: 6.891 kB / 331.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.01188, allocations: 27.38 kB / 331.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.01189, allocations: 2.141 kB / 331.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.459e-05/0.01198, allocations: 21.17 kB / 331.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.01199, allocations: 8.688 kB / 331.3 MB, free: 11.97 MB / 302.1 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 0.0001234/0.01211, allocations: 128.7 kB / 331.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001657/0.01228, allocations: 97.78 kB / 331.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.191e-05/0.01234, allocations: 18.67 kB / 331.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.01235, allocations: 2.359 kB / 331.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.01235, allocations: 1.438 kB / 331.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.01236, allocations: 2.484 kB / 331.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.0126, allocations: 139.3 kB / 331.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.0126, allocations: 1.891 kB / 331.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.01278, allocations: 33.33 kB / 331.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.01279, allocations: 1.656 kB / 331.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.0128, allocations: 6.75 kB / 331.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.01281, allocations: 9.094 kB / 331.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.01281, allocations: 1.875 kB / 331.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006161/0.01343, allocations: 390.7 kB / 332.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.826e-05/0.01348, allocations: 28.05 kB / 332.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.01351, allocations: 6.469 kB / 332.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.01366, allocations: 12.55 kB / 332.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.005e-05/0.01371, allocations: 6.188 kB / 332.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.01372, allocations: 3.531 kB / 332.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001144/0.01383, allocations: 132.4 kB / 332.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01383, allocations: 0 / 332.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000314/0.01415, allocations: 30.58 kB / 332.4 MB, free: 11.19 MB / 302.1 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.000112/0.01426, allocations: 100.4 kB / 332.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002987/0.01456, allocations: 96.66 kB / 332.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01456, allocations: 1.625 kB / 332.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.01466, allocations: 28.05 kB / 332.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.01516, allocations: 65.84 kB / 332.6 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006915/0.01585, allocations: 361 kB / 333 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.01598, allocations: 112.4 kB / 333.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.878e-05/0.01602, allocations: 12.47 kB / 333.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.221e-05/0.01606, allocations: 15.47 kB / 333.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.01606, allocations: 0 / 333.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of Templates: time 0.004488/0.02055, allocations: 1.345 MB / 334.5 MB, free: 9.957 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.181321371346712]