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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 110.9 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 192.5 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 47.92 kB / 351.9 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2931, allocations: 49.43 MB / 401.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003749/0.2969, allocations: 2.028 MB / 403.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.2982, allocations: 0.5725 MB / 404 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.2984, allocations: 4 kB / 404 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.2986, allocations: 23.8 kB / 404 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.2989, allocations: 35.66 kB / 404 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.2992, allocations: 63.81 kB / 404.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.2994, allocations: 127.6 kB / 404.2 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.2995, allocations: 61.83 kB / 404.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.688e-05/0.2996, allocations: 51.73 kB / 404.3 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.386e-05/0.2997, allocations: 59.7 kB / 404.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.904e-05/0.2998, allocations: 12 kB / 404.4 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.197e-05/0.2998, allocations: 8 kB / 404.4 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.2999, allocations: 39.89 kB / 404.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8e-05/0.3, allocations: 63.61 kB / 404.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.3002, allocations: 144.7 kB / 404.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3002, allocations: 0 / 404.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3002, allocations: 0 / 404.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.3002, allocations: 0 / 404.7 MB, free: 5.734 MB / 318.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.000709/0.3009, allocations: 461.8 kB / 405.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.301, allocations: 12.03 kB / 405.1 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.268e-05/0.3011, allocations: 20.75 kB / 405.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.3014, allocations: 216 kB / 405.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.3014, allocations: 12.38 kB / 405.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.877e-05/0.3014, allocations: 12.38 kB / 405.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000514/0.3019, allocations: 262.7 kB / 405.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.302, allocations: 11.89 kB / 405.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.302, allocations: 4 kB / 405.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.302, allocations: 4 kB / 405.7 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/0.3023, allocations: 91.88 kB / 405.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/0.3029, allocations: 0.5882 MB / 406.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000356/0.3033, allocations: 151.8 kB / 406.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.3035, allocations: 74.64 kB / 406.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.3035, allocations: 4 kB / 406.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.3035, allocations: 38.56 kB / 406.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.3036, allocations: 0 / 406.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005336/0.3041, allocations: 189.7 kB / 406.8 MB, free: 3.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/0.3042, allocations: 114.8 kB / 406.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.3043, allocations: 158.2 kB / 407 MB, free: 3.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.3044, allocations: 33.64 kB / 407.1 MB, free: 3.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.826e-05/0.3044, allocations: 116.5 kB / 407.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.63e-05/0.3045, allocations: 31.64 kB / 407.2 MB, free: 2.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.926e-05/0.3045, allocations: 41.61 kB / 407.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3047, allocations: 322.8 kB / 407.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.3048, allocations: 35.97 kB / 407.6 MB, free: 2.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.3049, allocations: 135.4 kB / 407.7 MB, free: 2.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/0.3052, allocations: 197.4 kB / 407.9 MB, free: 2.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.3052, allocations: 4 kB / 407.9 MB, free: 2.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003661/0.3056, allocations: 189.2 kB / 408.1 MB, free: 1.871 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.3056, allocations: 8 kB / 408.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3057, allocations: 4.469 kB / 408.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.3057, allocations: 8 kB / 408.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.3059, allocations: 51.91 kB / 408.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.3059, allocations: 4 kB / 408.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.306, allocations: 19.83 kB / 408.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.306, allocations: 12 kB / 408.2 MB, free: 1.766 MB / 318.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.0001235/0.3062, allocations: 134.4 kB / 408.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.3063, allocations: 93.44 kB / 408.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.955e-05/0.3064, allocations: 24.7 kB / 408.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3064, allocations: 0 / 408.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.3064, allocations: 4 kB / 408.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3065, allocations: 0 / 408.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002938/0.3068, allocations: 225.5 kB / 408.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3068, allocations: 0 / 408.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.3069, allocations: 39.92 kB / 408.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.307, allocations: 0 / 408.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.307, allocations: 4 kB / 408.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.307, allocations: 3.984 kB / 408.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.307, allocations: 4 kB / 408.8 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005349/0.3075, allocations: 387.3 kB / 409.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.588e-05/0.3076, allocations: 100.9 kB / 409.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.3076, allocations: 8.094 kB / 409.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/0.3078, allocations: 12 kB / 409.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.681e-05/0.3078, allocations: 7.984 kB / 409.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.3079, allocations: 8 kB / 409.3 MB, free: 0.625 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.372e-05/0.308, allocations: 115.2 kB / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.308, allocations: 0 / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003298/0.3083, allocations: 28 kB / 409.4 MB, free: 496 kB / 318.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.0001155/0.3084, allocations: 103.2 kB / 409.5 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003314/0.3088, allocations: 127.7 kB / 409.6 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3088, allocations: 0 / 409.6 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.91e-05/0.3089, allocations: 27.92 kB / 409.7 MB, free: 228 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005005/0.3094, allocations: 68.92 kB / 409.7 MB, free: 160 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008152/0.3102, allocations: 451.6 kB / 410.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.3105, allocations: 0.724 MB / 410.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/0.3106, allocations: 15.44 kB / 410.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3106, allocations: 0 / 410.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Templates: time 0.004148/0.3148, allocations: 1.644 MB / 412.6 MB, free: 13.27 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches