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.001719/0.001719, allocations: 92.27 kB / 20.96 MB, free: 3.449 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.001848/0.001848, allocations: 156.9 kB / 24.26 MB, free: 152 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.564/1.564, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.345e-06/2.345e-06, allocations: 0 / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.686e-05/3.921e-05, allocations: 2.312 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.006825/0.006864, allocations: 1.99 MB / 274.2 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.008901, allocations: 0.5297 MB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.009094, allocations: 4 kB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.009285, allocations: 19.8 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002754/0.00956, allocations: 31.66 kB / 274.7 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.01001, allocations: 59.8 kB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003596/0.01037, allocations: 119.5 kB / 274.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/0.01061, allocations: 45.58 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.01086, allocations: 71.86 kB / 275 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.01101, allocations: 43.83 kB / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.847e-05/0.01106, allocations: 12 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.666e-05/0.0111, allocations: 8 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.393e-05/0.01116, allocations: 31.89 kB / 275.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.01127, allocations: 35.92 kB / 275.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003955/0.01167, allocations: 139.4 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.192e-05/0.01168, allocations: 7.984 kB / 275.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01168, allocations: 0 / 275.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.01169, allocations: 0 / 275.3 MB, free: 14.67 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.001106/0.0128, allocations: 345.8 kB / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.01285, allocations: 11.98 kB / 275.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.01297, allocations: 24.84 kB / 275.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005087/0.01348, allocations: 153.5 kB / 275.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/0.01352, allocations: 12.38 kB / 275.8 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.808e-05/0.01359, allocations: 24.31 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008995/0.01449, allocations: 239.1 kB / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.01451, allocations: 192 / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.01454, allocations: 12.38 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.01455, allocations: 3.938 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004507/0.015, allocations: 91.86 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.01607, allocations: 492.5 kB / 276.7 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006371/0.01671, allocations: 143.9 kB / 276.8 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/0.017, allocations: 66.64 kB / 276.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.023e-05/0.01705, allocations: 11.98 kB / 276.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.702e-05/0.0171, allocations: 38.5 kB / 276.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.944e-06/0.01711, allocations: 3.938 kB / 276.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000976/0.01808, allocations: 185.4 kB / 277.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.01823, allocations: 106.8 kB / 277.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002354/0.01847, allocations: 133.1 kB / 277.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.01851, allocations: 25.7 kB / 277.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.01865, allocations: 124.2 kB / 277.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.705e-05/0.0187, allocations: 23.78 kB / 277.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.769e-05/0.01879, allocations: 25.72 kB / 277.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002814/0.01907, allocations: 326.8 kB / 277.9 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.01926, allocations: 23.98 kB / 277.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000254/0.01951, allocations: 82.78 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000434/0.01994, allocations: 114.8 kB / 278.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.01995, allocations: 0 / 278.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005785/0.02053, allocations: 141.5 kB / 278.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.02055, allocations: 4 kB / 278.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.02057, allocations: 7.984 kB / 278.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.02059, allocations: 4 kB / 278.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.0208, allocations: 31.92 kB / 278.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.02082, allocations: 4 kB / 278.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.02098, allocations: 19.88 kB / 278.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.02099, allocations: 4 kB / 278.3 MB, free: 11.39 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 0.0002252/0.02122, allocations: 137.8 kB / 278.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.0215, allocations: 85.64 kB / 278.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.637e-05/0.0216, allocations: 16.78 kB / 278.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.02161, allocations: 8.172 kB / 278.6 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.02162, allocations: 3.984 kB / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.02163, allocations: 3.984 kB / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004246/0.02205, allocations: 137.2 kB / 278.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.02205, allocations: 0 / 278.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003086/0.02236, allocations: 35.92 kB / 278.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.64e-05/0.02238, allocations: 7.984 kB / 278.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.0224, allocations: 8 kB / 278.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.0224, allocations: 0 / 278.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.291e-06/0.02241, allocations: 4 kB / 278.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.02342, allocations: 387.4 kB / 279.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.02346, allocations: 15.94 kB / 279.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.244e-05/0.0235, allocations: 0 / 279.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.02375, allocations: 8 kB / 279.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.991e-05/0.02382, allocations: 7.984 kB / 279.2 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.02383, allocations: 8.062 kB / 279.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001477/0.02398, allocations: 103.2 kB / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02398, allocations: 0 / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000578/0.02456, allocations: 27.94 kB / 279.3 MB, free: 10.34 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.0001945/0.02475, allocations: 99.19 kB / 279.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005154/0.02527, allocations: 91.2 kB / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.02527, allocations: 4.062 kB / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.02545, allocations: 31.91 kB / 279.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008746/0.02633, allocations: 55.05 kB / 279.6 MB, free: 10.06 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.02747, allocations: 347.2 kB / 279.9 MB, free: 9.688 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.02766, allocations: 105.3 kB / 280 MB, free: 9.562 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.104e-05/0.02772, allocations: 4.984 kB / 280 MB, free: 9.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.399e-05/0.0278, allocations: 12.5 kB / 280 MB, free: 9.547 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.0278, allocations: 0 / 280 MB, free: 9.547 MB / 266.7 MB Notification: Performance of Templates: time 0.007412/0.03521, allocations: 1.229 MB / 281.3 MB, free: 8.344 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.473510000971146]