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.001573/0.001573, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001818/0.001818, allocations: 167.4 kB / 25.61 MB, free: 8.578 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.9673/0.9673, allocations: 177 MB / 205.9 MB, free: 4.449 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.152e-06/1.152e-06, allocations: 0 / 274.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.777e-05/1.893e-05, allocations: 2.312 kB / 274.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.005998/0.006017, allocations: 2.074 MB / 276.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009105/0.006927, allocations: 0.5946 MB / 276.8 MB, free: 1.641 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.007035, allocations: 9.969 kB / 276.8 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.007145, allocations: 15.8 kB / 276.8 MB, free: 1.617 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003155/0.0103, allocations: 35.66 kB / 276.8 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.01054, allocations: 71.73 kB / 276.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.01076, allocations: 124.4 kB / 277 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.01088, allocations: 46.09 kB / 277.1 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.01099, allocations: 76.42 kB / 277.1 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.489e-05/0.01106, allocations: 43.88 kB / 277.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.01109, allocations: 14.41 kB / 277.2 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.683e-05/0.0111, allocations: 12 kB / 277.2 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.147e-05/0.01116, allocations: 31.91 kB / 277.2 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.73e-05/0.0112, allocations: 39.86 kB / 277.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.01137, allocations: 111.5 kB / 277.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.01137, allocations: 3.984 kB / 277.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.01138, allocations: 0 / 277.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.01138, allocations: 1.531 kB / 277.4 MB, free: 1.016 MB / 250.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.0004826/0.01186, allocations: 475.9 kB / 277.8 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.01189, allocations: 8.812 kB / 277.9 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.917e-05/0.01194, allocations: 28.84 kB / 277.9 MB, free: 492 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.01213, allocations: 165 kB / 278 MB, free: 300 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.01214, allocations: 16.38 kB / 278.1 MB, free: 284 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.01217, allocations: 16.38 kB / 278.1 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.01248, allocations: 228.7 kB / 278.3 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.01249, allocations: 192 / 278.3 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.657e-05/0.01252, allocations: 8.391 kB / 278.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.01252, allocations: 7.938 kB / 278.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.663e-05/0.01259, allocations: 38.16 kB / 278.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001604/0.0142, allocations: 0.6484 MB / 279 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/0.0144, allocations: 133.1 kB / 279.1 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.272e-05/0.01445, allocations: 55.31 kB / 279.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.01447, allocations: 11.92 kB / 279.2 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.01449, allocations: 33.39 kB / 279.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.01449, allocations: 0 / 279.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000224/0.01471, allocations: 121.6 kB / 279.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.01477, allocations: 115.2 kB / 279.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.01488, allocations: 207.6 kB / 279.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.0149, allocations: 29.7 kB / 279.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.01496, allocations: 163.3 kB / 279.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.01498, allocations: 23.78 kB / 279.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.01502, allocations: 35.36 kB / 279.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.01516, allocations: 0.4961 MB / 280.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.783e-05/0.01517, allocations: 4 kB / 280.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.993e-05/0.01523, allocations: 93.41 kB / 280.5 MB, free: 13.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.508e-05/0.01532, allocations: 97.42 kB / 280.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.01532, allocations: 4 kB / 280.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001243/0.01545, allocations: 97.66 kB / 280.7 MB, free: 13.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.01546, allocations: 8 kB / 280.7 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.01546, allocations: 4 kB / 280.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.01547, allocations: 0 / 280.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.913e-05/0.01555, allocations: 27.92 kB / 280.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.01556, allocations: 4 kB / 280.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.984e-05/0.01561, allocations: 15.83 kB / 280.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.01562, allocations: 11.94 kB / 280.8 MB, free: 13.27 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.119e-05/0.0157, allocations: 168.5 kB / 280.9 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.0158, allocations: 81.47 kB / 281 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.665e-05/0.01586, allocations: 28.77 kB / 281 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.01586, allocations: 4 kB / 281 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.01586, allocations: 0 / 281 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.01587, allocations: 0 / 281 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.01605, allocations: 129.1 kB / 281.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.01605, allocations: 4 kB / 281.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.01616, allocations: 27.98 kB / 281.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.01616, allocations: 4 kB / 281.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.01618, allocations: 0 / 281.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.01618, allocations: 0 / 281.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.01618, allocations: 7.984 kB / 281.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002185/0.0164, allocations: 350.6 kB / 281.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.01645, allocations: 27.83 kB / 281.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.01647, allocations: 8 kB / 281.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.549e-05/0.01656, allocations: 7.984 kB / 281.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.01659, allocations: 0 / 281.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.0166, allocations: 8 kB / 281.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.203e-05/0.01666, allocations: 148.7 kB / 281.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01666, allocations: 0 / 281.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002698/0.01693, allocations: 24 kB / 281.8 MB, free: 12.2 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.005078/0.02201, allocations: 107.5 kB / 281.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.02213, allocations: 63.41 kB / 281.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.02213, allocations: 0 / 281.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.776e-05/0.02215, allocations: 27.81 kB / 282 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.02257, allocations: 62.14 kB / 282 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000847/0.02342, allocations: 367.9 kB / 282.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.787e-05/0.02347, allocations: 75.33 kB / 282.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.268e-05/0.02351, allocations: 8.641 kB / 282.5 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.84e-05/0.02359, allocations: 90.19 kB / 282.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02359, allocations: 4 kB / 282.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of Templates: time 0.006456/0.03004, allocations: 1.501 MB / 284.1 MB, free: 9.914 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.839821974746883]