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.001403/0.001403, allocations: 109.1 kB / 21.18 MB, free: 0.7852 MB / 14.72 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.001629/0.001629, allocations: 217.3 kB / 24.49 MB, free: 4.172 MB / 14.72 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.475/1.475, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.1 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.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 0.002056/0.002056, allocations: 67.84 kB / 379 MB, free: 2.547 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2695, allocations: 53.41 MB / 432.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003624/0.2732, allocations: 2.065 MB / 434.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2744, allocations: 0.6232 MB / 435.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.2745, allocations: 7.938 kB / 435.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.2746, allocations: 15.8 kB / 435.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001904/0.2748, allocations: 31.72 kB / 435.2 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.2751, allocations: 67.81 kB / 435.2 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.2753, allocations: 127.6 kB / 435.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.2754, allocations: 46.03 kB / 435.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.176e-05/0.2755, allocations: 55.73 kB / 435.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.881e-05/0.2756, allocations: 63.69 kB / 435.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.2757, allocations: 12 kB / 435.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.462e-05/0.2757, allocations: 8 kB / 435.5 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.192e-05/0.2757, allocations: 35.84 kB / 435.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.384e-05/0.2758, allocations: 63.61 kB / 435.6 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.276, allocations: 148.6 kB / 435.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.276, allocations: 0 / 435.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.276, allocations: 3.938 kB / 435.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.276, allocations: 4 kB / 435.8 MB, free: 3.41 MB / 334.1 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.0006534/0.2767, allocations: 381.6 kB / 436.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2767, allocations: 12.03 kB / 436.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.664e-05/0.2768, allocations: 20.8 kB / 436.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.2771, allocations: 161.3 kB / 436.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.2771, allocations: 12.38 kB / 436.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.76e-05/0.2771, allocations: 16.38 kB / 436.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005114/0.2776, allocations: 250.9 kB / 436.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.2776, allocations: 4 kB / 436.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.2777, allocations: 4 kB / 436.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.2777, allocations: 4 kB / 436.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002543/0.2779, allocations: 91.81 kB / 436.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006748/0.2786, allocations: 0.5504 MB / 437.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003511/0.2789, allocations: 135.9 kB / 437.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.2791, allocations: 74.62 kB / 437.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.2791, allocations: 4 kB / 437.5 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.2792, allocations: 34.56 kB / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.2792, allocations: 0 / 437.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005372/0.2797, allocations: 193.4 kB / 437.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.985e-05/0.2798, allocations: 110.8 kB / 437.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.2799, allocations: 166.8 kB / 438 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.2799, allocations: 29.7 kB / 438 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.526e-05/0.28, allocations: 116.5 kB / 438.1 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.28, allocations: 27.78 kB / 438.2 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.2801, allocations: 33.72 kB / 438.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2802, allocations: 327.2 kB / 438.5 MB, free: 460 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2804, allocations: 36 kB / 438.5 MB, free: 424 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.2805, allocations: 145.3 kB / 438.7 MB, free: 232 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003177/0.2809, allocations: 185.6 kB / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2809, allocations: 3.938 kB / 438.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003795/0.2812, allocations: 197.3 kB / 439.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.2813, allocations: 14.48 kB / 439.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2813, allocations: 4 kB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.2813, allocations: 4 kB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.2814, allocations: 47.92 kB / 439.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.2815, allocations: 7.984 kB / 439.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.2816, allocations: 15.89 kB / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.2816, allocations: 12.31 kB / 439.2 MB, free: 15.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001194/0.2817, allocations: 141.7 kB / 439.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.2819, allocations: 89.53 kB / 439.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.198e-05/0.2819, allocations: 20.72 kB / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2819, allocations: 0 / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2819, allocations: 0 / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.2819, allocations: 7.984 kB / 439.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.2822, allocations: 184.6 kB / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2822, allocations: 0 / 439.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.2824, allocations: 47.91 kB / 439.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2824, allocations: 3.828 kB / 439.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.2824, allocations: 4 kB / 439.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.2824, allocations: 0 / 439.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2824, allocations: 0 / 439.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005412/0.283, allocations: 387.4 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.449e-05/0.283, allocations: 31.86 kB / 440.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.2831, allocations: 4 kB / 440.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.2832, allocations: 7.984 kB / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.2832, allocations: 4 kB / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.2833, allocations: 12 kB / 440.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.912e-05/0.2833, allocations: 111.2 kB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2833, allocations: 4.062 kB / 440.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.2837, allocations: 35.98 kB / 440.2 MB, free: 14.54 MB / 350.1 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.0001048/0.2838, allocations: 95.25 kB / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003332/0.2841, allocations: 120.4 kB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2841, allocations: 4.281 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.2842, allocations: 35.84 kB / 440.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.2847, allocations: 59.11 kB / 440.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008006/0.2855, allocations: 467.9 kB / 441 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.2859, allocations: 0.7201 MB / 441.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.574e-05/0.2859, allocations: 19.42 kB / 441.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2859, allocations: 0 / 441.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Templates: time 0.003549/0.2895, allocations: 1.624 MB / 443.4 MB, free: 11.35 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/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: 7.256165113998577]