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.0009798/0.0009798, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009676/0.0009676, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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 1.041/1.041, allocations: 177 MB / 204.8 MB, free: 5.578 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.903e-06/1.903e-06, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.049e-05/3.239e-05, allocations: 6.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002756/0.002788, allocations: 2.093 MB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009672/0.003756, allocations: 0.5919 MB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.003884, allocations: 7.938 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.004011, allocations: 15.8 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001866/0.004198, allocations: 35.66 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.004472, allocations: 67.8 kB / 275.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.00465, allocations: 127.5 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.00479, allocations: 50.08 kB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.004902, allocations: 83.73 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.596e-05/0.004988, allocations: 35.89 kB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.005013, allocations: 8 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.687e-05/0.00503, allocations: 12 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.266e-05/0.005092, allocations: 39.83 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.821e-05/0.005141, allocations: 39.86 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002091/0.00535, allocations: 107.6 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.005353, allocations: 0 / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.005354, allocations: 4 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.005361, allocations: 0 / 276.2 MB, free: 14.15 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.0005386/0.0059, allocations: 475.8 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.005943, allocations: 11.98 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.665e-05/0.006, allocations: 32.8 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.006214, allocations: 160.4 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.006227, allocations: 12.38 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.006268, allocations: 16.38 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003877/0.006656, allocations: 243.7 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.00667, allocations: 4.188 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.006684, allocations: 4.375 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.006694, allocations: 7.938 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.903e-05/0.006773, allocations: 39.91 kB / 277.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005457/0.007318, allocations: 0.6523 MB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.007556, allocations: 145.3 kB / 278 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.193e-05/0.007618, allocations: 55.14 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.007643, allocations: 4 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.007665, allocations: 37.38 kB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.545e-06/0.007667, allocations: 4 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002502/0.007917, allocations: 133.4 kB / 278.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.007973, allocations: 114.8 kB / 278.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.008088, allocations: 209.8 kB / 278.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.0081, allocations: 29.83 kB / 278.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.008168, allocations: 167.3 kB / 278.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.008189, allocations: 23.78 kB / 278.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.008229, allocations: 31.38 kB / 278.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.008345, allocations: 0.4922 MB / 279.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.93e-05/0.008374, allocations: 12 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.463e-05/0.008429, allocations: 85.48 kB / 279.4 MB, free: 10.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.471e-05/0.008523, allocations: 109.5 kB / 279.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.008526, allocations: 0 / 279.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001289/0.008655, allocations: 109.4 kB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.008668, allocations: 4 kB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.008675, allocations: 4 kB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.008693, allocations: 224 / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.352e-05/0.008777, allocations: 31.98 kB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.008784, allocations: 3.938 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.831e-05/0.008823, allocations: 11.88 kB / 279.6 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.008832, allocations: 12 kB / 279.6 MB, free: 10.35 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.146e-05/0.008913, allocations: 160.6 kB / 279.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.817e-05/0.009011, allocations: 85.52 kB / 279.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.535e-05/0.009067, allocations: 20.72 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.00907, allocations: 4 kB / 279.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.009076, allocations: 4 kB / 279.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.009079, allocations: 4 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.009241, allocations: 164.5 kB / 280.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.009245, allocations: 4 kB / 280.1 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.009347, allocations: 31.92 kB / 280.1 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.00935, allocations: 0 / 280.1 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.009367, allocations: 8 kB / 280.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.009369, allocations: 3.984 kB / 280.1 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.009371, allocations: 4 kB / 280.1 MB, free: 9.809 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002768/0.009648, allocations: 410.6 kB / 280.5 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.009699, allocations: 23.88 kB / 280.5 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.186e-05/0.00972, allocations: 12.03 kB / 280.6 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.644e-05/0.009787, allocations: 0 / 280.6 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.864e-05/0.009825, allocations: 11.92 kB / 280.6 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.009833, allocations: 8 kB / 280.6 MB, free: 9.328 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.08e-05/0.009894, allocations: 152 kB / 280.7 MB, free: 9.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009894, allocations: 0 / 280.7 MB, free: 9.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001999/0.01009, allocations: 27.89 kB / 280.7 MB, free: 9.152 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.486e-05/0.01018, allocations: 103.2 kB / 280.8 MB, free: 9.043 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001346/0.01031, allocations: 67.53 kB / 280.9 MB, free: 8.973 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01032, allocations: 0 / 280.9 MB, free: 8.973 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.34e-05/0.01034, allocations: 19.67 kB / 280.9 MB, free: 8.949 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003781/0.01072, allocations: 55.94 kB / 281 MB, free: 8.895 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007158/0.01143, allocations: 384 kB / 281.4 MB, free: 8.484 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.732e-05/0.01148, allocations: 71.33 kB / 281.4 MB, free: 8.395 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.373e-05/0.01151, allocations: 12.64 kB / 281.4 MB, free: 8.383 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.01155, allocations: 16.48 kB / 281.5 MB, free: 8.367 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.01155, allocations: 3.938 kB / 281.5 MB, free: 8.363 MB / 266.7 MB Notification: Performance of Templates: time 0.003334/0.01489, allocations: 1.365 MB / 282.8 MB, free: 7.066 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.687493117991835]