Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001662/0.001662, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 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.002015/0.002015, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 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 1.5/1.5, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteTextbookController,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.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 51.92 kB / 368.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2865, allocations: 52.14 MB / 420.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003574/0.2901, allocations: 2.04 MB / 422.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009987/0.2911, allocations: 0.5103 MB / 423.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.2912, allocations: 7.938 kB / 423.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.2913, allocations: 19.8 kB / 423.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.93e-05/0.2914, allocations: 23.78 kB / 423.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.2917, allocations: 55.88 kB / 423.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001979/0.2919, allocations: 115.6 kB / 423.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.2921, allocations: 45.41 kB / 423.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.852e-05/0.2921, allocations: 47.8 kB / 423.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.965e-05/0.2922, allocations: 55.7 kB / 423.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.199e-05/0.2923, allocations: 12 kB / 423.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.056e-05/0.2923, allocations: 8 kB / 423.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.885e-05/0.2923, allocations: 27.92 kB / 423.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.463e-05/0.2924, allocations: 63.66 kB / 423.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002098/0.2926, allocations: 128.7 kB / 424 MB, free: 11.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2926, allocations: 0 / 424 MB, free: 11.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2926, allocations: 0 / 424 MB, free: 11.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.2926, allocations: 0 / 424 MB, free: 11.96 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.0006573/0.2933, allocations: 430.9 kB / 424.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.2933, allocations: 8.031 kB / 424.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.162e-05/0.2934, allocations: 16.84 kB / 424.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.2937, allocations: 212.1 kB / 424.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.2937, allocations: 12.38 kB / 424.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.2937, allocations: 12.38 kB / 424.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005143/0.2942, allocations: 242.9 kB / 424.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.2943, allocations: 7.953 kB / 424.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.2943, allocations: 7.938 kB / 424.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.2943, allocations: 4 kB / 424.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.2945, allocations: 75.94 kB / 425 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006981/0.2952, allocations: 0.5921 MB / 425.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.2955, allocations: 139.9 kB / 425.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.2957, allocations: 70.58 kB / 425.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.2957, allocations: 4 kB / 425.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.2958, allocations: 34.56 kB / 425.8 MB, free: 9.891 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.2958, allocations: 3.938 kB / 425.8 MB, free: 9.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005668/0.2963, allocations: 185.3 kB / 426 MB, free: 9.699 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.2964, allocations: 114.8 kB / 426.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.2966, allocations: 122.1 kB / 426.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.2966, allocations: 33.83 kB / 426.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.451e-05/0.2967, allocations: 112.1 kB / 426.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.2967, allocations: 32.14 kB / 426.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.005e-05/0.2968, allocations: 33.7 kB / 426.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.2969, allocations: 330.8 kB / 426.8 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.297, allocations: 31.97 kB / 426.8 MB, free: 8.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.2972, allocations: 140 kB / 426.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.2975, allocations: 176.7 kB / 427.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.2975, allocations: 0 / 427.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003827/0.2979, allocations: 189.2 kB / 427.3 MB, free: 8.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.2979, allocations: 11.44 kB / 427.3 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.298, allocations: 0 / 427.3 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.298, allocations: 11.94 kB / 427.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.2982, allocations: 44.34 kB / 427.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.2982, allocations: 11.94 kB / 427.4 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.2983, allocations: 19.89 kB / 427.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.2983, allocations: 8 kB / 427.4 MB, free: 8.152 MB / 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.0001232/0.2984, allocations: 125.8 kB / 427.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.2986, allocations: 89.53 kB / 427.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.9e-05/0.2986, allocations: 16.66 kB / 427.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.2987, allocations: 4 kB / 427.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.2987, allocations: 0 / 427.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2987, allocations: 4 kB / 427.6 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003009/0.299, allocations: 209.5 kB / 427.8 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.299, allocations: 0 / 427.8 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2991, allocations: 35.91 kB / 427.9 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.421e-06/0.2991, allocations: 4 kB / 427.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.2992, allocations: 7.938 kB / 427.9 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.2992, allocations: 0 / 427.9 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.2992, allocations: 4 kB / 427.9 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005632/0.2997, allocations: 376.8 kB / 428.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.785e-05/0.2998, allocations: 85.33 kB / 428.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.957e-05/0.2998, allocations: 19.86 kB / 428.4 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.3, allocations: 4 kB / 428.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.3, allocations: 16.03 kB / 428.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-06/0.3, allocations: 0 / 428.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.31e-05/0.3001, allocations: 103.3 kB / 428.5 MB, free: 6.965 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3001, allocations: 0 / 428.5 MB, free: 6.965 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003265/0.3004, allocations: 31.89 kB / 428.5 MB, free: 6.934 MB / 334.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.0001173/0.3005, allocations: 99.25 kB / 428.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003524/0.3009, allocations: 120 kB / 428.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3009, allocations: 0 / 428.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.768e-05/0.301, allocations: 31.92 kB / 428.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005125/0.3015, allocations: 48 kB / 428.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007841/0.3023, allocations: 398 kB / 429.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/0.3027, allocations: 0.7161 MB / 429.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.496e-05/0.3027, allocations: 8.656 kB / 429.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.401e-05/0.3028, allocations: 19.44 kB / 429.9 MB, free: 5.441 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3028, allocations: 0 / 429.9 MB, free: 5.441 MB / 334.1 MB Notification: Performance of Templates: time 0.005011/0.3078, allocations: 1.242 MB / 431.2 MB, free: 4.242 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.515442377887666]