Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001428/0.001428, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001702/0.001702, allocations: 167.7 kB / 24.99 MB, free: 8.219 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 1.004/1.004, allocations: 177 MB / 205.2 MB, free: 5.527 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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.324e-06/2.324e-06, allocations: 0 / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.369e-05/3.602e-05, allocations: 5.266 kB / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002709/0.002745, allocations: 2.054 MB / 275 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006829/0.003428, allocations: 0.5257 MB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.927e-05/0.003517, allocations: 0 / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.003624, allocations: 23.8 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.77e-05/0.003682, allocations: 23.73 kB / 275.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.003934, allocations: 55.81 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.004079, allocations: 127.5 kB / 275.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.004208, allocations: 41.59 kB / 275.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.234e-05/0.004301, allocations: 71.81 kB / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.006e-05/0.004371, allocations: 43.88 kB / 275.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.004395, allocations: 8 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.525e-05/0.00441, allocations: 12 kB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.869e-05/0.004439, allocations: 23.91 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.402e-05/0.004483, allocations: 43.91 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.004636, allocations: 91.58 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.004641, allocations: 0 / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.004642, allocations: 0 / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.004647, allocations: 0 / 276.1 MB, free: 14.59 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.0004851/0.005132, allocations: 448.1 kB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.005168, allocations: 11.98 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.173e-05/0.005219, allocations: 28.84 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.005397, allocations: 164.3 kB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.005408, allocations: 8.375 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.509e-05/0.005433, allocations: 12.38 kB / 276.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.005734, allocations: 224.8 kB / 277 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.005744, allocations: 192 / 277 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.005756, allocations: 4.375 kB / 277 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.005765, allocations: 3.938 kB / 277 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.267e-05/0.005837, allocations: 51.91 kB / 277 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004348/0.006272, allocations: 0.629 MB / 277.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.006416, allocations: 141.3 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.921e-05/0.006475, allocations: 55.14 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.006495, allocations: 4 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.006515, allocations: 41.33 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.223e-06/0.006516, allocations: 0 / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002207/0.006737, allocations: 129.7 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.006788, allocations: 114.8 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.333e-05/0.006882, allocations: 189.1 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.006892, allocations: 29.7 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.872e-05/0.006951, allocations: 158.7 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.006969, allocations: 23.84 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.35e-05/0.007002, allocations: 31.38 kB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.007112, allocations: 0.4922 MB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.279e-05/0.007135, allocations: 8 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.812e-05/0.007183, allocations: 85.42 kB / 279.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.577e-05/0.007259, allocations: 105.5 kB / 279.3 MB, free: 11.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.007261, allocations: 0 / 279.3 MB, free: 11.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000101/0.007362, allocations: 105.7 kB / 279.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.007373, allocations: 8 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.007377, allocations: 0 / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.007389, allocations: 4 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.785e-05/0.007477, allocations: 27.92 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.007483, allocations: 4 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.712e-05/0.00752, allocations: 19.83 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.007526, allocations: 4 kB / 279.4 MB, free: 10.91 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 6.948e-05/0.007596, allocations: 164.6 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.795e-05/0.007674, allocations: 77.58 kB / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.925e-05/0.007703, allocations: 20.78 kB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.007705, allocations: 3.938 kB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.007709, allocations: 0 / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.007713, allocations: 4 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001771/0.00789, allocations: 152.4 kB / 279.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.007892, allocations: 0 / 279.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.008003, allocations: 31.92 kB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.008005, allocations: 0 / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.008026, allocations: 15.98 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.008027, allocations: 0 / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.008028, allocations: 0 / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.008304, allocations: 410.6 kB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.379e-05/0.008317, allocations: 11.91 kB / 280.3 MB, free: 9.957 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.008335, allocations: 4 kB / 280.3 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.75e-05/0.008433, allocations: 8 kB / 280.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.00847, allocations: 3.984 kB / 280.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-06/0.008478, allocations: 4 kB / 280.3 MB, free: 9.938 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.355e-05/0.008531, allocations: 139.2 kB / 280.4 MB, free: 9.801 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008532, allocations: 0 / 280.4 MB, free: 9.801 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002877/0.008819, allocations: 31.88 kB / 280.5 MB, free: 9.77 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 8.714e-05/0.008906, allocations: 110.9 kB / 280.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001303/0.009037, allocations: 63.52 kB / 280.6 MB, free: 9.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.009038, allocations: 0 / 280.6 MB, free: 9.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.252e-05/0.009071, allocations: 27.61 kB / 280.7 MB, free: 9.559 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.009492, allocations: 38.83 kB / 280.7 MB, free: 9.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006844/0.01018, allocations: 343.1 kB / 281 MB, free: 9.148 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.834e-05/0.01024, allocations: 79.27 kB / 281.1 MB, free: 9.051 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.951e-05/0.01026, allocations: 4.484 kB / 281.1 MB, free: 9.047 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.345e-05/0.0103, allocations: 16.5 kB / 281.1 MB, free: 9.027 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.0103, allocations: 0 / 281.1 MB, free: 9.027 MB / 266.7 MB Notification: Performance of Templates: time 0.003105/0.0134, allocations: 1.185 MB / 282.3 MB, free: 7.895 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.9235474050510675]