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.0007365/0.0007365, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001015/0.001751, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0009687/0.0009687, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001256/0.002225, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.024/1.024, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0846/1.109, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.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 1.202e-06/1.202e-06, allocations: 0 / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.02e-05/1.14e-05, allocations: 2.312 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002134/0.002146, allocations: 2.108 MB / 247.1 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006969/0.002843, allocations: 0.5295 MB / 247.6 MB, free: 11.01 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.94e-05/0.002922, allocations: 7.938 kB / 247.6 MB, free: 11 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.601e-05/0.002978, allocations: 23.78 kB / 247.7 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.537e-05/0.003033, allocations: 23.78 kB / 247.7 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001613/0.003195, allocations: 59.75 kB / 247.7 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.003318, allocations: 119.6 kB / 247.9 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.003421, allocations: 50.14 kB / 247.9 MB, free: 10.73 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.872e-05/0.00352, allocations: 83.8 kB / 248 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.003584, allocations: 39.88 kB / 248 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.433e-05/0.003609, allocations: 12 kB / 248 MB, free: 10.6 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.247e-05/0.003621, allocations: 8 kB / 248 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.003646, allocations: 23.88 kB / 248.1 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.513e-05/0.003681, allocations: 31.94 kB / 248.1 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001211/0.003802, allocations: 79.62 kB / 248.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/0.003812, allocations: 7.984 kB / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.003813, allocations: 0 / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.003825, allocations: 0 / 248.2 MB, free: 10.45 MB / 250.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.000406/0.004231, allocations: 344.1 kB / 248.5 MB, free: 10.09 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.00426, allocations: 12.62 kB / 248.5 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.418e-05/0.004294, allocations: 16.92 kB / 248.6 MB, free: 10.06 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.004438, allocations: 149.5 kB / 248.7 MB, free: 9.891 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.004448, allocations: 8.375 kB / 248.7 MB, free: 9.883 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.004472, allocations: 12.38 kB / 248.7 MB, free: 9.871 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.00471, allocations: 199.8 kB / 248.9 MB, free: 9.648 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.004719, allocations: 192 / 248.9 MB, free: 9.648 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.004729, allocations: 8.375 kB / 248.9 MB, free: 9.641 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.004735, allocations: 3.938 kB / 248.9 MB, free: 9.637 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.179e-05/0.004786, allocations: 38.53 kB / 249 MB, free: 9.602 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000338/0.005124, allocations: 458 kB / 249.4 MB, free: 9.117 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.005231, allocations: 99.69 kB / 249.5 MB, free: 8.992 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.675e-05/0.005268, allocations: 42.59 kB / 249.6 MB, free: 8.941 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.005286, allocations: 4 kB / 249.6 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.00531, allocations: 42.55 kB / 249.6 MB, free: 8.887 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 9.82e-07/0.005311, allocations: 3.938 kB / 249.6 MB, free: 8.883 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001789/0.00549, allocations: 93.53 kB / 249.7 MB, free: 8.785 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.005536, allocations: 110.8 kB / 249.8 MB, free: 8.652 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.571e-05/0.005592, allocations: 134.8 kB / 249.9 MB, free: 8.508 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.758e-06/0.005602, allocations: 25.7 kB / 250 MB, free: 8.477 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.687e-05/0.005638, allocations: 111.8 kB / 250.1 MB, free: 8.363 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.005656, allocations: 27.77 kB / 250.1 MB, free: 8.336 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.005686, allocations: 25.72 kB / 250.1 MB, free: 8.305 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.679e-05/0.005753, allocations: 330.7 kB / 250.4 MB, free: 7.973 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.005764, allocations: 4 kB / 250.4 MB, free: 7.969 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.401e-05/0.005798, allocations: 62.8 kB / 250.5 MB, free: 7.883 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.602e-05/0.005854, allocations: 78.78 kB / 250.6 MB, free: 7.781 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.005856, allocations: 0 / 250.6 MB, free: 7.781 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.488e-05/0.005931, allocations: 85.47 kB / 250.7 MB, free: 7.691 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.005942, allocations: 4 kB / 250.7 MB, free: 7.688 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.005947, allocations: 8.219 kB / 250.7 MB, free: 7.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.005955, allocations: 0 / 250.7 MB, free: 7.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.006082, allocations: 39.19 kB / 250.7 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.006088, allocations: 7.984 kB / 250.7 MB, free: 7.637 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.368e-05/0.006122, allocations: 19.81 kB / 250.7 MB, free: 7.617 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.006127, allocations: 4 kB / 250.7 MB, free: 7.613 MB / 250.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 5.368e-05/0.006181, allocations: 117.8 kB / 250.9 MB, free: 7.488 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.046e-05/0.006241, allocations: 61.67 kB / 250.9 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.00627, allocations: 16.78 kB / 250.9 MB, free: 7.406 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.006272, allocations: 4 kB / 250.9 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.006274, allocations: 0 / 250.9 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.006277, allocations: 4 kB / 250.9 MB, free: 7.398 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.006385, allocations: 85.8 kB / 251 MB, free: 7.297 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.006386, allocations: 7.938 kB / 251 MB, free: 7.289 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.968e-05/0.006476, allocations: 35.92 kB / 251.1 MB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.815e-05/0.006494, allocations: 23.83 kB / 251.1 MB, free: 7.23 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.006496, allocations: 0 / 251.1 MB, free: 7.23 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.006506, allocations: 4 kB / 251.1 MB, free: 7.227 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.006508, allocations: 3.984 kB / 251.1 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.006509, allocations: 0 / 251.1 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001171/0.006626, allocations: 243.8 kB / 251.3 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.00664, allocations: 8 kB / 251.4 MB, free: 6.957 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.666e-05/0.006697, allocations: 3.984 kB / 251.4 MB, free: 6.953 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.554e-05/0.006722, allocations: 7.984 kB / 251.4 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-05/0.006799, allocations: 8 kB / 251.4 MB, free: 6.938 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.721e-05/0.006816, allocations: 24.34 kB / 251.4 MB, free: 6.914 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006816, allocations: 0 / 251.4 MB, free: 6.914 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001536/0.00697, allocations: 24 kB / 251.4 MB, free: 6.891 MB / 250.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.366e-05/0.007033, allocations: 88.33 kB / 251.5 MB, free: 6.797 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.935e-05/0.007113, allocations: 52.66 kB / 251.6 MB, free: 6.746 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/0.00712, allocations: 8 kB / 251.6 MB, free: 6.738 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.844e-05/0.007168, allocations: 24.84 kB / 251.6 MB, free: 6.711 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.007417, allocations: 43.58 kB / 251.6 MB, free: 6.668 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.008671, allocations: 307.9 kB / 251.9 MB, free: 6.332 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.986e-05/0.008711, allocations: 71.33 kB / 252 MB, free: 6.242 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.619e-05/0.008737, allocations: 8.969 kB / 252 MB, free: 6.23 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.763e-05/0.008795, allocations: 67.38 kB / 252.1 MB, free: 6.164 MB / 250.7 MB Notification: Performance of SimCode: time 7.01e-07/0.008796, allocations: 0 / 252.1 MB, free: 6.164 MB / 250.7 MB Notification: Performance of Templates: time 0.002633/0.01143, allocations: 1.277 MB / 253.4 MB, free: 4.945 MB / 250.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 -ignoreHideResult -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.579444292001426]