Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001635/0.001635, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001939/0.001939, allocations: 180.9 kB / 23.71 MB, free: 4.695 MB / 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.48/1.48, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.ClockedWithDiscreteController,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.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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 43.92 kB / 370.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2806, allocations: 52.19 MB / 423.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003494/0.2841, allocations: 2.049 MB / 425.1 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009952/0.2851, allocations: 0.5337 MB / 425.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.995e-05/0.2852, allocations: 0 / 425.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.2853, allocations: 19.8 kB / 425.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.2854, allocations: 27.72 kB / 425.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002352/0.2857, allocations: 63.86 kB / 425.8 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.2859, allocations: 115.6 kB / 425.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.286, allocations: 45.61 kB / 425.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.37e-05/0.2861, allocations: 55.72 kB / 426 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.604e-05/0.2862, allocations: 51.77 kB / 426.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.759e-05/0.2862, allocations: 16 kB / 426.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.373e-05/0.2862, allocations: 12 kB / 426.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.246e-05/0.2863, allocations: 23.92 kB / 426.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.337e-05/0.2863, allocations: 63.66 kB / 426.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.2865, allocations: 120.7 kB / 426.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.2865, allocations: 0 / 426.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2865, allocations: 0 / 426.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.2865, allocations: 3.938 kB / 426.3 MB, free: 11.5 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006098/0.2871, allocations: 361.8 kB / 426.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2872, allocations: 11.97 kB / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.2872, allocations: 16.84 kB / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.2875, allocations: 146.3 kB / 426.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.2875, allocations: 8.375 kB / 426.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.2876, allocations: 16.31 kB / 426.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005636/0.2881, allocations: 266.8 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.2881, allocations: 0 / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.2881, allocations: 4 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.2882, allocations: 4 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.2884, allocations: 91.86 kB / 427.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006637/0.2891, allocations: 0.5272 MB / 427.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/0.2895, allocations: 147.9 kB / 427.9 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.2896, allocations: 66.64 kB / 427.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.2897, allocations: 11.92 kB / 427.9 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.2897, allocations: 34.56 kB / 428 MB, free: 9.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.2897, allocations: 3.938 kB / 428 MB, free: 9.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005671/0.2903, allocations: 185.3 kB / 428.2 MB, free: 9.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.399e-05/0.2903, allocations: 110.8 kB / 428.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001862/0.2905, allocations: 130.1 kB / 428.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.2906, allocations: 33.83 kB / 428.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.431e-05/0.2906, allocations: 116 kB / 428.5 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.2907, allocations: 31.78 kB / 428.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.644e-05/0.2907, allocations: 33.7 kB / 428.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.2909, allocations: 322.8 kB / 428.9 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.291, allocations: 31.98 kB / 429 MB, free: 8.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/0.2913, allocations: 141.6 kB / 429.1 MB, free: 8.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.2916, allocations: 181.5 kB / 429.3 MB, free: 8.168 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.2916, allocations: 4 kB / 429.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004146/0.292, allocations: 197.1 kB / 429.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.2921, allocations: 8.469 kB / 429.5 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2921, allocations: 8 kB / 429.5 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.2921, allocations: 8 kB / 429.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.2923, allocations: 55.84 kB / 429.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.2923, allocations: 4 kB / 429.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.2924, allocations: 15.89 kB / 429.6 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.2924, allocations: 12 kB / 429.6 MB, free: 7.855 MB / 334.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.0001217/0.2925, allocations: 137.6 kB / 429.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.2927, allocations: 93.53 kB / 429.8 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.042e-05/0.2928, allocations: 16.72 kB / 429.8 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.2928, allocations: 4 kB / 429.8 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2928, allocations: 480 / 429.8 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.2928, allocations: 7.984 kB / 429.8 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002857/0.2931, allocations: 168.6 kB / 430 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.2931, allocations: 3.984 kB / 430 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.2932, allocations: 35.98 kB / 430 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2932, allocations: 3.938 kB / 430 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.2933, allocations: 4 kB / 430 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2933, allocations: 0 / 430 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2933, allocations: 7.938 kB / 430 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006319/0.2939, allocations: 387 kB / 430.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.2939, allocations: 15.91 kB / 430.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.294, allocations: 8.062 kB / 430.5 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.2941, allocations: 11.98 kB / 430.5 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.2941, allocations: 3.984 kB / 430.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.2941, allocations: 8 kB / 430.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.261e-05/0.2942, allocations: 95.27 kB / 430.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2942, allocations: 0 / 430.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.2945, allocations: 31.95 kB / 430.6 MB, free: 6.754 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 (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.0001254/0.2947, allocations: 103.2 kB / 430.7 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000359/0.295, allocations: 123.7 kB / 430.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.295, allocations: 0 / 430.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.2951, allocations: 24.92 kB / 430.8 MB, free: 6.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005134/0.2957, allocations: 61.58 kB / 430.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008147/0.2965, allocations: 394.2 kB / 431.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.2969, allocations: 0.7162 MB / 432 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.122e-05/0.297, allocations: 9.094 kB / 432 MB, free: 5.273 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.627e-05/0.297, allocations: 15.42 kB / 432 MB, free: 5.258 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.297, allocations: 0 / 432 MB, free: 5.258 MB / 334.1 MB Notification: Performance of Templates: time 0.004889/0.3019, allocations: 1.333 MB / 433.4 MB, free: 3.941 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.495895121246576]