Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002286/0.002286, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9847/0.9847, allocations: 173.3 MB / 201.1 MB, free: 9.301 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.053e-06/2.053e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.397e-05/3.603e-05, allocations: 2.312 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003742/0.003778, allocations: 2.066 MB / 270 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.004896, allocations: 0.5608 MB / 270.6 MB, free: 3.773 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.005029, allocations: 7.938 kB / 270.6 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.005171, allocations: 15.8 kB / 270.6 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.005373, allocations: 43.66 kB / 270.7 MB, free: 3.707 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.005678, allocations: 67.73 kB / 270.7 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.00589, allocations: 135.4 kB / 270.9 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.006059, allocations: 38.09 kB / 270.9 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.006193, allocations: 75.86 kB / 271 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.925e-05/0.006292, allocations: 47.81 kB / 271 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.006324, allocations: 12 kB / 271 MB, free: 3.332 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.268e-05/0.006347, allocations: 8 kB / 271 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.88e-05/0.006416, allocations: 35.84 kB / 271.1 MB, free: 3.289 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.149e-05/0.006477, allocations: 35.92 kB / 271.1 MB, free: 3.254 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.006711, allocations: 111.5 kB / 271.2 MB, free: 3.145 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.006717, allocations: 3.984 kB / 271.2 MB, free: 3.141 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.006719, allocations: 0 / 271.2 MB, free: 3.141 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.006725, allocations: 0 / 271.2 MB, free: 3.141 MB / 250.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.0005405/0.007266, allocations: 471.9 kB / 271.7 MB, free: 2.645 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.007307, allocations: 12.92 kB / 271.7 MB, free: 2.633 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.212e-05/0.007359, allocations: 24.84 kB / 271.7 MB, free: 2.609 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.007554, allocations: 173.9 kB / 271.9 MB, free: 2.414 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.007566, allocations: 12.38 kB / 271.9 MB, free: 2.402 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.0076, allocations: 12.38 kB / 271.9 MB, free: 2.391 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000363/0.007963, allocations: 248.2 kB / 272.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.007974, allocations: 192 / 272.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.007987, allocations: 8.312 kB / 272.2 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.007995, allocations: 7.938 kB / 272.2 MB, free: 2.102 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.23e-05/0.008068, allocations: 39.97 kB / 272.2 MB, free: 2.062 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004987/0.008566, allocations: 0.6523 MB / 272.9 MB, free: 1.355 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.00878, allocations: 137.3 kB / 273 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.043e-05/0.00884, allocations: 55.14 kB / 273 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.008863, allocations: 7.984 kB / 273.1 MB, free: 1.109 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.008892, allocations: 45.33 kB / 273.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.008893, allocations: 0 / 273.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002355/0.009129, allocations: 129.4 kB / 273.2 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.009179, allocations: 110.9 kB / 273.3 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002835/0.009463, allocations: 205.9 kB / 273.5 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.009476, allocations: 33.7 kB / 273.6 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.079e-05/0.009537, allocations: 159.3 kB / 273.7 MB, free: 380 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.009555, allocations: 27.78 kB / 273.8 MB, free: 352 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.009591, allocations: 31.38 kB / 273.8 MB, free: 312 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.009714, allocations: 0.4961 MB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.464e-05/0.009739, allocations: 4 kB / 274.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.249e-05/0.009791, allocations: 85.42 kB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.859e-05/0.00988, allocations: 109.4 kB / 274.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.009883, allocations: 0 / 274.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001189/0.01, allocations: 105.4 kB / 274.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.01002, allocations: 8.219 kB / 274.6 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01002, allocations: 4 kB / 274.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.01004, allocations: 4 kB / 274.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.011e-05/0.01011, allocations: 27.92 kB / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.01011, allocations: 0 / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.843e-05/0.01015, allocations: 19.89 kB / 274.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.01016, allocations: 4 kB / 274.6 MB, free: 15.36 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 7.021e-05/0.01023, allocations: 168.5 kB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.924e-05/0.01032, allocations: 85.91 kB / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.968e-05/0.01037, allocations: 21.02 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.01037, allocations: 4 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.01037, allocations: 4 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.01038, allocations: 11.97 kB / 274.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.01053, allocations: 152.5 kB / 275.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.01053, allocations: 0 / 275.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.17e-05/0.01062, allocations: 35.92 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.01062, allocations: 4 kB / 275.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.01064, allocations: 3.984 kB / 275.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.01065, allocations: 4 kB / 275.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01065, allocations: 0 / 275.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.01091, allocations: 426.5 kB / 275.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.01095, allocations: 23.89 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.01097, allocations: 4 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.236e-05/0.01103, allocations: 8 kB / 275.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.01106, allocations: 3.984 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.01107, allocations: 4 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.016e-05/0.01113, allocations: 160.6 kB / 275.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01113, allocations: 0 / 275.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001842/0.01131, allocations: 35.77 kB / 275.8 MB, free: 14.15 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 7.546e-05/0.01139, allocations: 103.3 kB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001151/0.0115, allocations: 67.53 kB / 275.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.0115, allocations: 0 / 275.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.498e-05/0.01153, allocations: 23.61 kB / 276 MB, free: 13.94 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/0.01188, allocations: 54.06 kB / 276 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000655/0.01253, allocations: 376 kB / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.034e-05/0.01258, allocations: 75.33 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.748e-05/0.01261, allocations: 8.641 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.714e-05/0.01265, allocations: 20.5 kB / 276.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01265, allocations: 0 / 276.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of Templates: time 0.003167/0.01581, allocations: 1.373 MB / 277.9 MB, free: 12.05 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.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.8752136561088264]