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.001304/0.001304, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001164/0.001164, allocations: 170.7 kB / 24.99 MB, free: 8.789 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 1.008/1.008, allocations: 177.1 MB / 205.3 MB, free: 5.621 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.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 1.453e-06/1.453e-06, allocations: 0 / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/1.963e-05, allocations: 6.312 kB / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002462/0.002482, allocations: 2.058 MB / 275.1 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006551/0.003137, allocations: 0.5219 MB / 275.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.698e-05/0.003224, allocations: 3.938 kB / 275.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.003329, allocations: 15.86 kB / 275.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.221e-05/0.003381, allocations: 23.72 kB / 275.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.003623, allocations: 67.73 kB / 275.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001393/0.003763, allocations: 123.6 kB / 275.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.003884, allocations: 33.61 kB / 275.9 MB, free: 15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.945e-05/0.003973, allocations: 75.8 kB / 275.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.275e-05/0.004046, allocations: 39.89 kB / 276 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.954e-05/0.004075, allocations: 8 kB / 276 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.463e-05/0.00409, allocations: 12 kB / 276 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.52e-05/0.004115, allocations: 23.91 kB / 276 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.208e-05/0.004157, allocations: 39.86 kB / 276.1 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.0043, allocations: 87.64 kB / 276.2 MB, free: 14.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.004302, allocations: 4 kB / 276.2 MB, free: 14.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.01e-07/0.004303, allocations: 4 kB / 276.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.004307, allocations: 0 / 276.2 MB, free: 14.71 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000407/0.004714, allocations: 444.1 kB / 276.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.004746, allocations: 8.031 kB / 276.6 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.004794, allocations: 24.84 kB / 276.6 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/0.004963, allocations: 164.2 kB / 276.8 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.004975, allocations: 16.38 kB / 276.8 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.005003, allocations: 12.38 kB / 276.8 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.005316, allocations: 224.8 kB / 277 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.005326, allocations: 192 / 277 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.005338, allocations: 12.31 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.005346, allocations: 7.938 kB / 277.1 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.001e-05/0.005416, allocations: 39.48 kB / 277.1 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.005852, allocations: 0.6328 MB / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001423/0.005994, allocations: 137.4 kB / 277.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.782e-05/0.006052, allocations: 55.08 kB / 277.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.006073, allocations: 7.984 kB / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.006092, allocations: 37.39 kB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.006094, allocations: 0 / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002251/0.006319, allocations: 117.5 kB / 278.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.006373, allocations: 114.8 kB / 278.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.4e-05/0.006457, allocations: 186 kB / 278.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.006469, allocations: 29.83 kB / 278.4 MB, free: 12.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.855e-05/0.006527, allocations: 166.6 kB / 278.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.006543, allocations: 19.84 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.006578, allocations: 35.36 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.006675, allocations: 0.4883 MB / 279.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.527e-05/0.0067, allocations: 15.92 kB / 279.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.766e-05/0.006748, allocations: 81.48 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.876e-05/0.006826, allocations: 113.5 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.006829, allocations: 4 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001057/0.006935, allocations: 97.5 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.006954, allocations: 4 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.006961, allocations: 7.938 kB / 279.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.006976, allocations: 0 / 279.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.113e-05/0.007067, allocations: 32.2 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.007074, allocations: 4 kB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.709e-05/0.007111, allocations: 19.81 kB / 279.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.00712, allocations: 8 kB / 279.5 MB, free: 11.04 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 7.389e-05/0.007194, allocations: 160.5 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.104e-05/0.007275, allocations: 81.58 kB / 279.7 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.007307, allocations: 16.78 kB / 279.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.007309, allocations: 0 / 279.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.007314, allocations: 4 kB / 279.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.007318, allocations: 7.984 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.007461, allocations: 148.4 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.007462, allocations: 0 / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.389e-05/0.007546, allocations: 27.98 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.007549, allocations: 4 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.007565, allocations: 4 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.007565, allocations: 0 / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.007568, allocations: 4 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002318/0.007799, allocations: 409.5 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.348e-05/0.007813, allocations: 11.91 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.007829, allocations: 7.984 kB / 280.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.33e-05/0.007892, allocations: 8.031 kB / 280.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.554e-05/0.007928, allocations: 4 kB / 280.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.007934, allocations: 7.984 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.279e-05/0.007977, allocations: 139.2 kB / 280.5 MB, free: 9.938 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007977, allocations: 0 / 280.5 MB, free: 9.938 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001839/0.008161, allocations: 27.88 kB / 280.5 MB, free: 9.91 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 (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 6.647e-05/0.008227, allocations: 107.2 kB / 280.6 MB, free: 9.797 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.008342, allocations: 71.78 kB / 280.7 MB, free: 9.723 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.008343, allocations: 0 / 280.7 MB, free: 9.723 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.315e-05/0.008366, allocations: 15.69 kB / 280.7 MB, free: 9.703 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.008679, allocations: 55.42 kB / 280.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006063/0.009286, allocations: 342.9 kB / 281.1 MB, free: 9.277 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.936e-05/0.009335, allocations: 79.27 kB / 281.2 MB, free: 9.18 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.201e-05/0.009367, allocations: 8.484 kB / 281.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.222e-05/0.009399, allocations: 12.5 kB / 281.2 MB, free: 9.156 MB / 266.7 MB Notification: Performance of SimCode: time 9.81e-07/0.0094, allocations: 0 / 281.2 MB, free: 9.156 MB / 266.7 MB Notification: Performance of Templates: time 0.003229/0.01263, allocations: 1.197 MB / 282.4 MB, free: 8.016 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.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.951396838063374]