Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 59.89 kB / 358.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2977, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003731/0.3015, allocations: 2.041 MB / 411.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.3028, allocations: 0.6038 MB / 411.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001803/0.303, allocations: 4 kB / 411.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.3032, allocations: 23.73 kB / 411.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.3034, allocations: 27.72 kB / 411.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003673/0.3038, allocations: 71.81 kB / 412 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.304, allocations: 127.5 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.3042, allocations: 65.81 kB / 412.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.3044, allocations: 47.8 kB / 412.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.832e-05/0.3045, allocations: 63.69 kB / 412.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.3045, allocations: 12 kB / 412.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.143e-05/0.3045, allocations: 8 kB / 412.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.191e-05/0.3046, allocations: 35.84 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.021e-05/0.3047, allocations: 71.61 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.3049, allocations: 151.2 kB / 412.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.305, allocations: 0 / 412.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.305, allocations: 0 / 412.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.305, allocations: 0 / 412.6 MB, free: 14.26 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006905/0.3057, allocations: 448.1 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3057, allocations: 8.031 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.207e-05/0.3058, allocations: 20.75 kB / 413 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.3061, allocations: 216 kB / 413.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.3061, allocations: 8.375 kB / 413.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.3062, allocations: 16.38 kB / 413.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005316/0.3067, allocations: 258.7 kB / 413.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.3067, allocations: 4 kB / 413.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.3068, allocations: 4 kB / 413.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.3068, allocations: 7.938 kB / 413.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/0.307, allocations: 83.92 kB / 413.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006716/0.3077, allocations: 0.5999 MB / 414.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003636/0.3081, allocations: 151.8 kB / 414.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.3083, allocations: 78.64 kB / 414.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.3083, allocations: 0 / 414.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.3083, allocations: 38.5 kB / 414.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.3083, allocations: 0 / 414.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000517/0.3089, allocations: 189.6 kB / 414.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.402e-05/0.3089, allocations: 114.8 kB / 414.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.3091, allocations: 170.1 kB / 414.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.3091, allocations: 25.7 kB / 415 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.194e-05/0.3092, allocations: 108.5 kB / 415.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.3092, allocations: 35.77 kB / 415.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.625e-05/0.3093, allocations: 45.61 kB / 415.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3094, allocations: 318.8 kB / 415.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.3095, allocations: 35.97 kB / 415.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.3097, allocations: 145.2 kB / 415.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.31, allocations: 185.7 kB / 415.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.31, allocations: 0 / 415.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003596/0.3104, allocations: 201.1 kB / 416 MB, free: 10.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3104, allocations: 8 kB / 416 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3104, allocations: 4 kB / 416 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.3104, allocations: 4 kB / 416 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.3106, allocations: 48.38 kB / 416.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.3106, allocations: 11.94 kB / 416.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.3107, allocations: 23.83 kB / 416.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.3107, allocations: 8 kB / 416.1 MB, free: 10.3 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.0001219/0.3109, allocations: 137.7 kB / 416.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/0.311, allocations: 89.5 kB / 416.3 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.74e-05/0.3111, allocations: 24.64 kB / 416.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3111, allocations: 0 / 416.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3111, allocations: 8 kB / 416.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3111, allocations: 0 / 416.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002719/0.3114, allocations: 225.5 kB / 416.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3114, allocations: 0 / 416.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.3116, allocations: 31.98 kB / 416.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.3116, allocations: 0 / 416.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.3116, allocations: 4 kB / 416.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.3116, allocations: 3.938 kB / 416.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3117, allocations: 0 / 416.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005233/0.3122, allocations: 391.2 kB / 417 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.807e-05/0.3123, allocations: 104.9 kB / 417.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.3123, allocations: 8 kB / 417.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.3124, allocations: 4.094 kB / 417.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.3125, allocations: 19.98 kB / 417.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.3125, allocations: 4 kB / 417.2 MB, free: 9.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.459e-05/0.3126, allocations: 115.2 kB / 417.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3126, allocations: 0 / 417.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.3129, allocations: 24 kB / 417.3 MB, free: 9.023 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.0001121/0.3131, allocations: 107.1 kB / 417.4 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003182/0.3134, allocations: 126.9 kB / 417.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3134, allocations: 4 kB / 417.5 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.003e-05/0.3135, allocations: 23.98 kB / 417.5 MB, free: 8.762 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.314, allocations: 70.92 kB / 417.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007742/0.3148, allocations: 430.9 kB / 418 MB, free: 8.242 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.3151, allocations: 0.7201 MB / 418.8 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.287e-05/0.3151, allocations: 13.42 kB / 418.8 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.128e-05/0.3152, allocations: 15.44 kB / 418.8 MB, free: 7.469 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.3152, allocations: 0 / 418.8 MB, free: 7.469 MB / 334.1 MB Notification: Performance of Templates: time 0.004411/0.3196, allocations: 1.355 MB / 420.1 MB, free: 6.16 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches