Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001495/0.001495, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001962/0.001962, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.013/1.013, allocations: 177.1 MB / 205 MB, free: 5.605 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.ExactlyClockedWithDiscreteController,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.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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 272.9 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.615e-05/2.819e-05, allocations: 6.312 kB / 272.9 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002729/0.002757, allocations: 2.091 MB / 275 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009065/0.003664, allocations: 0.5919 MB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.00378, allocations: 3.938 kB / 275.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.003898, allocations: 19.8 kB / 275.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.004078, allocations: 35.66 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.004337, allocations: 71.72 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001718/0.004509, allocations: 131.5 kB / 275.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.004645, allocations: 38.11 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.004763, allocations: 79.8 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.38e-05/0.004847, allocations: 47.88 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.961e-05/0.004876, allocations: 8 kB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.82e-05/0.004894, allocations: 12 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.319e-05/0.004958, allocations: 31.86 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.812e-05/0.005006, allocations: 43.83 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.00523, allocations: 103.5 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.005233, allocations: 0 / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.005234, allocations: 4 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.892e-06/0.00524, allocations: 0 / 276.2 MB, free: 14.23 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.0005125/0.005753, allocations: 479.9 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.005789, allocations: 12.03 kB / 276.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.509e-05/0.005844, allocations: 32.8 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.006028, allocations: 162.8 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.00604, allocations: 12.38 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.006071, allocations: 12.38 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.006408, allocations: 244.7 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.00642, allocations: 4.172 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.006433, allocations: 8.375 kB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.006443, allocations: 11.92 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.279e-05/0.006515, allocations: 39.91 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005336/0.007049, allocations: 0.6445 MB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.007281, allocations: 137.3 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.33e-05/0.007344, allocations: 63.12 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.007365, allocations: 8 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.007388, allocations: 41.33 kB / 278.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.505e-06/0.00739, allocations: 0 / 278.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002637/0.007654, allocations: 129.4 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.007718, allocations: 110.8 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.007841, allocations: 208.5 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.007856, allocations: 29.7 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.092e-05/0.007927, allocations: 163.3 kB / 278.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.007947, allocations: 23.78 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.007994, allocations: 31.5 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.008132, allocations: 0.5 MB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.78e-05/0.00816, allocations: 11.98 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.134e-05/0.008221, allocations: 89.42 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.89e-05/0.00831, allocations: 93.44 kB / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.008313, allocations: 0 / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001201/0.008433, allocations: 113.4 kB / 279.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.008447, allocations: 4 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.008455, allocations: 8 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.008468, allocations: 0 / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.874e-05/0.008547, allocations: 27.92 kB / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.008553, allocations: 4 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.034e-05/0.008594, allocations: 20.08 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.719e-06/0.008603, allocations: 11.98 kB / 279.7 MB, free: 10.43 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.631e-05/0.00868, allocations: 164.5 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.194e-05/0.008772, allocations: 85.59 kB / 279.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.442e-05/0.008826, allocations: 24.7 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.008831, allocations: 4 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.008836, allocations: 0 / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.008839, allocations: 3.938 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.009002, allocations: 152.5 kB / 280.1 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-06/0.009005, allocations: 0 / 280.1 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.009109, allocations: 43.97 kB / 280.2 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.009111, allocations: 240 / 280.2 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.009127, allocations: 4 kB / 280.2 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.009129, allocations: 0 / 280.2 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.00913, allocations: 0 / 280.2 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002832/0.009413, allocations: 431.9 kB / 280.6 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.009459, allocations: 23.88 kB / 280.6 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.009478, allocations: 3.984 kB / 280.6 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.446e-05/0.009542, allocations: 8 kB / 280.6 MB, free: 9.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.078e-05/0.009583, allocations: 4 kB / 280.6 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.009592, allocations: 7.984 kB / 280.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.773e-05/0.00966, allocations: 152.7 kB / 280.8 MB, free: 9.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00966, allocations: 0 / 280.8 MB, free: 9.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002062/0.009866, allocations: 31.89 kB / 280.8 MB, free: 9.238 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 9.682e-05/0.009963, allocations: 107.2 kB / 280.9 MB, free: 9.125 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.0101, allocations: 59.59 kB / 281 MB, free: 9.062 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.0101, allocations: 0 / 281 MB, free: 9.062 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.361e-05/0.01012, allocations: 20.06 kB / 281 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.01048, allocations: 63.84 kB / 281.1 MB, free: 8.977 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006888/0.01117, allocations: 375.5 kB / 281.4 MB, free: 8.574 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.829e-05/0.01122, allocations: 71.33 kB / 281.5 MB, free: 8.484 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.842e-05/0.01126, allocations: 12.64 kB / 281.5 MB, free: 8.473 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.939e-05/0.0113, allocations: 20.5 kB / 281.5 MB, free: 8.453 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.0113, allocations: 0 / 281.5 MB, free: 8.453 MB / 266.7 MB Notification: Performance of Templates: time 0.003348/0.01464, allocations: 1.437 MB / 283 MB, free: 7.074 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.7518765539862216]