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) 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 109.4 kB / 17.06 MB, free: 6.023 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.001268/0.001268, allocations: 191 kB / 18 MB, free: 5.105 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.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000942/0.000942, allocations: 47.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3812, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003342/0.3846, allocations: 2.006 MB / 402.7 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009164/0.3856, allocations: 0.5298 MB / 403.2 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.3857, allocations: 3.938 kB / 403.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.3858, allocations: 15.81 kB / 403.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.386, allocations: 31.78 kB / 403.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.3862, allocations: 59.81 kB / 403.3 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001625/0.3864, allocations: 123.5 kB / 403.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.3866, allocations: 49.44 kB / 403.5 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.438e-05/0.3867, allocations: 59.72 kB / 403.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.829e-05/0.3867, allocations: 55.75 kB / 403.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.3868, allocations: 12 kB / 403.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.918e-05/0.3868, allocations: 12 kB / 403.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.216e-05/0.3868, allocations: 23.92 kB / 403.7 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.002e-05/0.3869, allocations: 55.67 kB / 403.7 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.3871, allocations: 132.6 kB / 403.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3871, allocations: 0 / 403.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3871, allocations: 3.938 kB / 403.9 MB, free: 5.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.3871, allocations: 0 / 403.9 MB, free: 5.695 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005829/0.3877, allocations: 435 kB / 404.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.3878, allocations: 8.031 kB / 404.3 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.3878, allocations: 16.75 kB / 404.3 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.388, allocations: 212.1 kB / 404.5 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.3881, allocations: 12.38 kB / 404.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.3881, allocations: 12.38 kB / 404.5 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004606/0.3886, allocations: 247.4 kB / 404.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.3886, allocations: 3.906 kB / 404.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.3886, allocations: 4 kB / 404.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.3886, allocations: 8 kB / 404.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.3889, allocations: 91.86 kB / 404.9 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006167/0.3895, allocations: 0.5882 MB / 405.5 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.3898, allocations: 151.8 kB / 405.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.39, allocations: 70.64 kB / 405.7 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.39, allocations: 11.98 kB / 405.7 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.3901, allocations: 34.56 kB / 405.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.3901, allocations: 0 / 405.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000483/0.3906, allocations: 181.3 kB / 405.9 MB, free: 3.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.3906, allocations: 114.9 kB / 406 MB, free: 3.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.925e-05/0.3908, allocations: 129.6 kB / 406.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.3908, allocations: 33.7 kB / 406.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.373e-05/0.3908, allocations: 115.9 kB / 406.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3909, allocations: 27.64 kB / 406.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.3909, allocations: 37.7 kB / 406.4 MB, free: 2.906 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.612e-05/0.391, allocations: 318.8 kB / 406.7 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.3912, allocations: 39.97 kB / 406.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.3913, allocations: 131.4 kB / 406.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.3916, allocations: 197.5 kB / 407 MB, free: 2.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3916, allocations: 4 kB / 407 MB, free: 2.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003763/0.392, allocations: 193.5 kB / 407.2 MB, free: 1.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.392, allocations: 11.94 kB / 407.2 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.392, allocations: 4 kB / 407.2 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3921, allocations: 4 kB / 407.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.3922, allocations: 47.91 kB / 407.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.3922, allocations: 7.938 kB / 407.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.645e-05/0.3923, allocations: 19.84 kB / 407.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.3924, allocations: 11.98 kB / 407.3 MB, free: 1.824 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 9.823e-05/0.3925, allocations: 141.7 kB / 407.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.3926, allocations: 89.53 kB / 407.6 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.248e-05/0.3927, allocations: 16.72 kB / 407.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3927, allocations: 0 / 407.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3927, allocations: 0 / 407.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.3927, allocations: 7.984 kB / 407.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.393, allocations: 209.4 kB / 407.8 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.393, allocations: 4 kB / 407.8 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.3932, allocations: 35.92 kB / 407.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3932, allocations: 0 / 407.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.3932, allocations: 12 kB / 407.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3932, allocations: 0 / 407.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3932, allocations: 3.984 kB / 407.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004899/0.3937, allocations: 387.5 kB / 408.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.939e-05/0.3938, allocations: 85.05 kB / 408.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.231e-05/0.3938, allocations: 7.984 kB / 408.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.3939, allocations: 11.98 kB / 408.3 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.864e-05/0.394, allocations: 3.984 kB / 408.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.394, allocations: 4 kB / 408.3 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.894e-05/0.3941, allocations: 99.27 kB / 408.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3941, allocations: 0 / 408.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003201/0.3944, allocations: 31.94 kB / 408.5 MB, free: 0.5859 MB / 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.0001082/0.3945, allocations: 99.31 kB / 408.6 MB, free: 492 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003258/0.3948, allocations: 123.7 kB / 408.7 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3948, allocations: 0.9375 kB / 408.7 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.135e-05/0.3949, allocations: 31.92 kB / 408.7 MB, free: 336 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.3954, allocations: 59.98 kB / 408.8 MB, free: 276 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006734/0.3961, allocations: 395.8 kB / 409.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.3964, allocations: 0.7162 MB / 409.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.852e-05/0.3964, allocations: 5.094 kB / 409.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.868e-05/0.3965, allocations: 19.42 kB / 409.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3965, allocations: 0 / 409.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Templates: time 0.004002/0.4005, allocations: 1.224 MB / 411.1 MB, free: 13.88 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (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) 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) Reference file matches