Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 107.6 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002414/0.002414, allocations: 205.1 kB / 24.48 MB, free: 3.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 59.91 kB / 378.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2836, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003556/0.2871, allocations: 1.975 MB / 434.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.2882, allocations: 0.5065 MB / 434.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2883, allocations: 3.938 kB / 434.8 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.2885, allocations: 15.86 kB / 434.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.2886, allocations: 27.66 kB / 434.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003964/0.289, allocations: 67.86 kB / 434.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.2892, allocations: 115.6 kB / 435 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.2895, allocations: 44.56 kB / 435.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.2896, allocations: 51.78 kB / 435.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.2897, allocations: 59.7 kB / 435.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.33e-05/0.2897, allocations: 8 kB / 435.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.339e-05/0.2898, allocations: 12 kB / 435.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.902e-05/0.2898, allocations: 23.92 kB / 435.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.541e-05/0.2899, allocations: 47.73 kB / 435.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003136/0.2902, allocations: 131.1 kB / 435.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.2902, allocations: 0 / 435.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.2902, allocations: 4 kB / 435.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.2902, allocations: 0 / 435.4 MB, free: 3.605 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008522/0.2911, allocations: 349.8 kB / 435.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/0.2911, allocations: 8.031 kB / 435.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.898e-05/0.2912, allocations: 16.84 kB / 435.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.2917, allocations: 153.5 kB / 435.9 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.2917, allocations: 8.375 kB / 435.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-05/0.2917, allocations: 16.33 kB / 435.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006433/0.2924, allocations: 243.7 kB / 436.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.2924, allocations: 3.984 kB / 436.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.2924, allocations: 8 kB / 436.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.2924, allocations: 4 kB / 436.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.2927, allocations: 87.86 kB / 436.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008071/0.2935, allocations: 0.4886 MB / 436.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/0.2938, allocations: 135.9 kB / 436.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.294, allocations: 70.62 kB / 437 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/0.294, allocations: 7.938 kB / 437 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.2941, allocations: 34.56 kB / 437 MB, free: 1.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.2941, allocations: 0 / 437 MB, free: 1.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005693/0.2946, allocations: 177.4 kB / 437.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.2948, allocations: 114.8 kB / 437.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.2949, allocations: 126.1 kB / 437.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.2949, allocations: 29.7 kB / 437.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.752e-05/0.295, allocations: 120.2 kB / 437.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.42e-05/0.2951, allocations: 27.78 kB / 437.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.614e-05/0.2951, allocations: 33.7 kB / 437.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.2953, allocations: 323 kB / 437.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.2954, allocations: 39.92 kB / 438 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.2956, allocations: 146.7 kB / 438.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.2959, allocations: 180.6 kB / 438.3 MB, free: 392 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.296, allocations: 0 / 438.3 MB, free: 392 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004123/0.2964, allocations: 185.3 kB / 438.5 MB, free: 200 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.2964, allocations: 11.98 kB / 438.5 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.2964, allocations: 0 / 438.5 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/0.2964, allocations: 8 kB / 438.5 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.2966, allocations: 44.3 kB / 438.5 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.2966, allocations: 8 kB / 438.5 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.2967, allocations: 23.88 kB / 438.6 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.2968, allocations: 8 kB / 438.6 MB, free: 96 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001449/0.2969, allocations: 125.8 kB / 438.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.297, allocations: 85.58 kB / 438.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.075e-05/0.2971, allocations: 20.7 kB / 438.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2971, allocations: 3.938 kB / 438.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.2971, allocations: 0 / 438.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.2971, allocations: 4 kB / 438.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.2974, allocations: 145.2 kB / 439 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2974, allocations: 0 / 439 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.2975, allocations: 36.14 kB / 439 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.2975, allocations: 4 kB / 439 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.2975, allocations: 0 / 439 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.2975, allocations: 4 kB / 439 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.2976, allocations: 7.922 kB / 439 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005814/0.2981, allocations: 379.5 kB / 439.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.587e-05/0.2982, allocations: 15.88 kB / 439.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.2982, allocations: 3.984 kB / 439.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.2983, allocations: 12 kB / 439.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.2983, allocations: 7.922 kB / 439.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.2984, allocations: 4 kB / 439.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.8e-05/0.2984, allocations: 99.27 kB / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2984, allocations: 0 / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003195/0.2987, allocations: 24 kB / 439.5 MB, free: 15.06 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 (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 0.000139/0.2989, allocations: 103.4 kB / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003488/0.2992, allocations: 119.7 kB / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2992, allocations: 0 / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.986e-05/0.2993, allocations: 28.8 kB / 439.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005329/0.2999, allocations: 52 kB / 439.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008543/0.3007, allocations: 416.1 kB / 440.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.3008, allocations: 101.5 kB / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.3009, allocations: 15.44 kB / 440.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3009, allocations: 4 kB / 440.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of Templates: time 0.003954/0.3048, allocations: 1.557 MB / 441.9 MB, free: 12.63 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.0851779819931835]