Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001885/0.001885, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.002202/0.002202, allocations: 205.2 kB / 24.47 MB, free: 3.977 MB / 14.72 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 1.506/1.506, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 51.92 kB / 378.9 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2581, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003406/0.2615, allocations: 1.983 MB / 434.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2625, allocations: 0.5141 MB / 434.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.2626, allocations: 3.938 kB / 434.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.2628, allocations: 19.8 kB / 434.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.355e-05/0.2628, allocations: 19.78 kB / 434.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.2631, allocations: 63.86 kB / 434.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.2633, allocations: 119.6 kB / 435 MB, free: 4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.2635, allocations: 40.58 kB / 435.1 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.505e-05/0.2636, allocations: 51.78 kB / 435.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.729e-05/0.2637, allocations: 59.7 kB / 435.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.2637, allocations: 8 kB / 435.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.531e-05/0.2637, allocations: 16 kB / 435.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.457e-05/0.2637, allocations: 23.92 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.672e-05/0.2638, allocations: 51.72 kB / 435.3 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001969/0.264, allocations: 123.2 kB / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.264, allocations: 0 / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.264, allocations: 0 / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.264, allocations: 0 / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006771/0.2647, allocations: 349.8 kB / 435.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.2647, allocations: 12.03 kB / 435.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.76e-05/0.2648, allocations: 20.78 kB / 435.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.265, allocations: 146.3 kB / 435.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.265, allocations: 8.375 kB / 435.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.2651, allocations: 16.33 kB / 435.9 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005294/0.2656, allocations: 242.9 kB / 436.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.2656, allocations: 7.938 kB / 436.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.2656, allocations: 8 kB / 436.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2657, allocations: 4 kB / 436.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002668/0.2659, allocations: 83.86 kB / 436.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006224/0.2665, allocations: 496.4 kB / 436.8 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002896/0.2668, allocations: 135.9 kB / 436.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.267, allocations: 78.56 kB / 437 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.267, allocations: 4 kB / 437 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.2671, allocations: 34.56 kB / 437 MB, free: 1.855 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.2671, allocations: 0 / 437 MB, free: 1.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005375/0.2676, allocations: 177.4 kB / 437.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.323e-05/0.2677, allocations: 114.8 kB / 437.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.2678, allocations: 126.2 kB / 437.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.2678, allocations: 37.64 kB / 437.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.807e-05/0.2679, allocations: 119.8 kB / 437.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.978e-05/0.2679, allocations: 27.78 kB / 437.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.789e-05/0.268, allocations: 33.7 kB / 437.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.2682, allocations: 322.8 kB / 437.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.2683, allocations: 39.91 kB / 438 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.2685, allocations: 131.4 kB / 438.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003078/0.2688, allocations: 180.8 kB / 438.3 MB, free: 424 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.2688, allocations: 4 kB / 438.3 MB, free: 420 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003862/0.2692, allocations: 193.6 kB / 438.5 MB, free: 220 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2692, allocations: 8 kB / 438.5 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.2692, allocations: 4 kB / 438.5 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2692, allocations: 4 kB / 438.5 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.2694, allocations: 43.86 kB / 438.5 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.2694, allocations: 11.92 kB / 438.5 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.2695, allocations: 19.89 kB / 438.6 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.2695, allocations: 8 kB / 438.6 MB, free: 120 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001177/0.2696, allocations: 121.9 kB / 438.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.2698, allocations: 89.58 kB / 438.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.584e-05/0.2698, allocations: 20.7 kB / 438.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2698, allocations: 3.938 kB / 438.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2698, allocations: 0 / 438.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2698, allocations: 4.469 kB / 438.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002458/0.2701, allocations: 141.2 kB / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2701, allocations: 0 / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.2703, allocations: 35.91 kB / 439 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.2703, allocations: 4 kB / 439 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.2704, allocations: 3.938 kB / 439 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.2704, allocations: 8 kB / 439 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.2704, allocations: 3.938 kB / 439 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000572/0.2709, allocations: 374.6 kB / 439.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.906e-05/0.271, allocations: 19.86 kB / 439.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.271, allocations: 4 kB / 439.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.2711, allocations: 8 kB / 439.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.2712, allocations: 7.922 kB / 439.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.2712, allocations: 4.062 kB / 439.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.014e-05/0.2713, allocations: 107.2 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2713, allocations: 0 / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.2716, allocations: 24 kB / 439.5 MB, free: 15.09 MB / 350.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 (14): * Single equations (assignments): 14 * 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.0001028/0.2717, allocations: 99.25 kB / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003341/0.272, allocations: 120.5 kB / 439.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.272, allocations: 0 / 439.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.2721, allocations: 27.92 kB / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.2726, allocations: 47.98 kB / 439.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000729/0.2733, allocations: 394.5 kB / 440.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001052/0.2734, allocations: 105.5 kB / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.436e-05/0.2735, allocations: 8.609 kB / 440.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.171e-05/0.2735, allocations: 19.42 kB / 440.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2735, allocations: 0 / 440.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of Templates: time 0.004345/0.2779, allocations: 1.403 MB / 441.7 MB, free: 12.88 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.Td,PI.kd,PI.x,PI.y,hold1.y_start,load.J,load.phi,load.w,periodicClock.period,periodicClock.useSolver,ramp.duration,ramp.height,ramp.offset,ramp.startTime,time [Calling sys.exit(0), Time elapsed: 4.4451884089939995]