Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001295/0.001295, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.00144/0.00144, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.058/1.058, allocations: 177 MB / 204.8 MB, free: 5.57 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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.402e-05/3.631e-05, allocations: 5.266 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003952/0.003988, allocations: 2.066 MB / 274.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.005152, allocations: 0.5491 MB / 275.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.005312, allocations: 7.938 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.005466, allocations: 15.8 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.00569, allocations: 27.72 kB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.006002, allocations: 63.8 kB / 275.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.006241, allocations: 127.5 kB / 275.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.006426, allocations: 41.53 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.006584, allocations: 79.8 kB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.006694, allocations: 43.88 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.215e-05/0.006726, allocations: 8 kB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.167e-05/0.006748, allocations: 12 kB / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.65e-05/0.006785, allocations: 19.92 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.947e-05/0.006854, allocations: 43.84 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.007095, allocations: 87.64 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.007099, allocations: 0 / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.007101, allocations: 4 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.007109, allocations: 4 kB / 276.1 MB, free: 14.25 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000647/0.007756, allocations: 444.1 kB / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/0.007817, allocations: 19.92 kB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.308e-05/0.0079, allocations: 24.84 kB / 276.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.008205, allocations: 152.4 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.008225, allocations: 8.375 kB / 276.7 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.00828, allocations: 12.38 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005542/0.008834, allocations: 248.8 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.008852, allocations: 192 / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.008877, allocations: 16.34 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.008893, allocations: 3.938 kB / 277 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001125/0.009005, allocations: 47.84 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000699/0.009704, allocations: 0.6368 MB / 277.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.01002, allocations: 133.3 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.201e-05/0.0101, allocations: 59.14 kB / 277.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.01013, allocations: 0 / 277.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.01017, allocations: 45.38 kB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.01017, allocations: 0 / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003511/0.01052, allocations: 121.5 kB / 278 MB, free: 12.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.986e-05/0.0106, allocations: 118.7 kB / 278.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.01073, allocations: 192.8 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.01074, allocations: 29.83 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.135e-05/0.01082, allocations: 154.8 kB / 278.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.01085, allocations: 27.78 kB / 278.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-05/0.0109, allocations: 35.36 kB / 278.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.01105, allocations: 0.4883 MB / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.607e-05/0.01109, allocations: 11.98 kB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.21e-05/0.01116, allocations: 81.48 kB / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.01129, allocations: 105.4 kB / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.01129, allocations: 0 / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001774/0.01147, allocations: 109.4 kB / 279.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.01149, allocations: 4 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.0115, allocations: 4 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.01152, allocations: 224 / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.01164, allocations: 35.98 kB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.01165, allocations: 7.922 kB / 279.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.17e-05/0.01172, allocations: 15.88 kB / 279.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.01173, allocations: 4 kB / 279.4 MB, free: 10.54 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 9.556e-05/0.01182, allocations: 160.6 kB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.01197, allocations: 85.53 kB / 279.7 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.918e-05/0.01204, allocations: 20.77 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.01205, allocations: 0 / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.01205, allocations: 4 kB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.01206, allocations: 4 kB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.01225, allocations: 140.8 kB / 279.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.01225, allocations: 0 / 279.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.01237, allocations: 39.92 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.01237, allocations: 0 / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.01239, allocations: 7.969 kB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.01239, allocations: 8 kB / 279.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01239, allocations: 0 / 279.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.01268, allocations: 426.5 kB / 280.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/0.0127, allocations: 11.89 kB / 280.3 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.01272, allocations: 8.031 kB / 280.3 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.503e-05/0.01278, allocations: 4 kB / 280.3 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5e-05/0.01283, allocations: 7.984 kB / 280.3 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.01284, allocations: 4 kB / 280.3 MB, free: 9.555 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.266e-05/0.01289, allocations: 139.2 kB / 280.5 MB, free: 9.418 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.01289, allocations: 0 / 280.5 MB, free: 9.418 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001885/0.01308, allocations: 23.94 kB / 280.5 MB, free: 9.395 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 0.0001016/0.01318, allocations: 107.2 kB / 280.6 MB, free: 9.281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.01332, allocations: 63.66 kB / 280.7 MB, free: 9.215 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01332, allocations: 0 / 280.7 MB, free: 9.215 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.661e-05/0.01335, allocations: 23.62 kB / 280.7 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.01371, allocations: 51.03 kB / 280.7 MB, free: 9.137 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009988/0.01471, allocations: 350.2 kB / 281.1 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.131e-05/0.01479, allocations: 75.33 kB / 281.1 MB, free: 8.668 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.352e-05/0.01484, allocations: 8.969 kB / 281.2 MB, free: 8.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.173e-05/0.01489, allocations: 16.5 kB / 281.2 MB, free: 8.641 MB / 266.7 MB Notification: Performance of SimCode: time 1.343e-06/0.01489, allocations: 0 / 281.2 MB, free: 8.641 MB / 266.7 MB Notification: Performance of Templates: time 0.003453/0.01834, allocations: 1.205 MB / 282.4 MB, free: 7.461 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.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.742324777878821]