Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001069/0.001069, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004623/0.004623, allocations: 158.5 kB / 24.7 MB, free: 9.441 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 0.8569/0.8569, allocations: 177 MB / 204.9 MB, free: 5.758 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 325.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.384e-05, allocations: 2.844 kB / 325.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002337/0.00236, allocations: 2.021 MB / 327.8 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007909/0.003151, allocations: 0.5686 MB / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.003257, allocations: 11.94 kB / 328.3 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.003365, allocations: 15.8 kB / 328.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001592/0.003524, allocations: 47.58 kB / 328.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.003736, allocations: 59.81 kB / 328.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.003889, allocations: 127.5 kB / 328.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.004015, allocations: 42.11 kB / 328.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.181e-05/0.004107, allocations: 79.73 kB / 328.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.968e-05/0.004167, allocations: 39.89 kB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.004192, allocations: 8 kB / 328.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.406e-05/0.004206, allocations: 16 kB / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.984e-05/0.004256, allocations: 39.83 kB / 328.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.305e-05/0.004299, allocations: 43.84 kB / 328.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.004462, allocations: 147.5 kB / 329 MB, free: 12.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.004464, allocations: 0 / 329 MB, free: 12.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.004465, allocations: 0 / 329 MB, free: 12.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.004469, allocations: 0 / 329 MB, free: 12.15 MB / 298.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.0004398/0.004909, allocations: 377.6 kB / 329.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.004943, allocations: 19.92 kB / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.558e-05/0.004979, allocations: 20.84 kB / 329.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.005171, allocations: 158.2 kB / 329.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.005183, allocations: 16.31 kB / 329.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.00521, allocations: 12.38 kB / 329.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003377/0.005548, allocations: 262 kB / 329.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.00556, allocations: 192 / 329.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.005573, allocations: 8.375 kB / 329.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.005579, allocations: 3.938 kB / 329.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001402/0.005719, allocations: 87.81 kB / 329.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004004/0.006119, allocations: 0.4888 MB / 330.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.006347, allocations: 143.7 kB / 330.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.464e-05/0.006432, allocations: 74.77 kB / 330.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.006451, allocations: 4 kB / 330.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.00647, allocations: 38.55 kB / 330.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.006471, allocations: 0 / 330.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003082/0.006779, allocations: 181.7 kB / 330.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.006835, allocations: 114.8 kB / 331 MB, free: 9.977 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.178e-05/0.006927, allocations: 154.4 kB / 331.1 MB, free: 9.812 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.00694, allocations: 33.7 kB / 331.2 MB, free: 9.773 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.00699, allocations: 112.6 kB / 331.3 MB, free: 9.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.086e-05/0.007011, allocations: 27.78 kB / 331.3 MB, free: 9.633 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.229e-05/0.007043, allocations: 25.72 kB / 331.3 MB, free: 9.602 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.321e-05/0.007116, allocations: 326.8 kB / 331.6 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.049e-05/0.007167, allocations: 27.97 kB / 331.7 MB, free: 9.246 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.652e-05/0.007233, allocations: 82.78 kB / 331.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.007356, allocations: 115 kB / 331.9 MB, free: 9.004 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.007358, allocations: 0 / 331.9 MB, free: 9.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001514/0.00751, allocations: 141.4 kB / 332 MB, free: 8.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.007522, allocations: 4 kB / 332 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.007528, allocations: 4 kB / 332 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.007539, allocations: 0 / 332 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.219e-05/0.007601, allocations: 35.92 kB / 332 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.007606, allocations: 0 / 332 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.291e-05/0.007649, allocations: 23.81 kB / 332.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-06/0.007655, allocations: 4.219 kB / 332.1 MB, free: 8.789 MB / 298.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.497e-05/0.00772, allocations: 125.8 kB / 332.2 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.47e-05/0.007805, allocations: 101.5 kB / 332.3 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.588e-05/0.007851, allocations: 20.78 kB / 332.3 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.007854, allocations: 4 kB / 332.3 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.007858, allocations: 0 / 332.3 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.007863, allocations: 3.984 kB / 332.3 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.008007, allocations: 141.2 kB / 332.5 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.008009, allocations: 4 kB / 332.5 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.887e-05/0.008098, allocations: 35.91 kB / 332.5 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.008099, allocations: 8 kB / 332.5 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.008109, allocations: 4 kB / 332.5 MB, free: 8.309 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.00811, allocations: 4 kB / 332.5 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.008111, allocations: 0 / 332.5 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.00841, allocations: 383.3 kB / 332.9 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.93e-05/0.008449, allocations: 31.86 kB / 332.9 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.008465, allocations: 12.09 kB / 332.9 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.682e-05/0.008532, allocations: 11.92 kB / 332.9 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.008563, allocations: 12.06 kB / 333 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.008569, allocations: 4 kB / 333 MB, free: 7.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.245e-05/0.008621, allocations: 120.1 kB / 333.1 MB, free: 7.723 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008621, allocations: 0 / 333.1 MB, free: 7.723 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001811/0.008802, allocations: 31.88 kB / 333.1 MB, free: 7.691 MB / 298.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 6.688e-05/0.008869, allocations: 99.25 kB / 333.2 MB, free: 7.582 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.009031, allocations: 100.2 kB / 333.3 MB, free: 7.484 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.009032, allocations: 0 / 333.3 MB, free: 7.484 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.805e-05/0.00908, allocations: 27.92 kB / 333.3 MB, free: 7.457 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.009392, allocations: 59.98 kB / 333.4 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004468/0.009839, allocations: 390.2 kB / 333.8 MB, free: 6.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.342e-05/0.009922, allocations: 118.2 kB / 333.9 MB, free: 6.844 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.155e-05/0.009954, allocations: 12.5 kB / 333.9 MB, free: 6.832 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.009955, allocations: 0 / 333.9 MB, free: 6.832 MB / 298.7 MB Notification: Performance of Templates: time 0.002146/0.0121, allocations: 1.609 MB / 335.5 MB, free: 5.238 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.334705384448171]