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.001156/0.001156, allocations: 111.8 kB / 17.29 MB, free: 6.219 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.001132/0.001132, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.259/1.259, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 50.8 kB / 300.8 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09094/0.09204, allocations: 49.45 MB / 350.2 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003677/0.09576, allocations: 2.059 MB / 352.3 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.09681, allocations: 0.5182 MB / 352.8 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.09698, allocations: 7.938 kB / 352.8 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.09711, allocations: 11.92 kB / 352.8 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.0973, allocations: 27.8 kB / 352.9 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002457/0.09755, allocations: 43.95 kB / 352.9 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.09774, allocations: 119.6 kB / 353 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.0979, allocations: 61.27 kB / 353.1 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.546e-05/0.09799, allocations: 51.73 kB / 353.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.425e-05/0.09809, allocations: 55.77 kB / 353.2 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.09812, allocations: 12 kB / 353.2 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.07e-05/0.09815, allocations: 8 kB / 353.2 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.18e-05/0.09819, allocations: 27.91 kB / 353.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.09825, allocations: 59.67 kB / 353.3 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.09841, allocations: 92.06 kB / 353.4 MB, free: 1.617 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.09842, allocations: 0 / 353.4 MB, free: 1.617 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.09843, allocations: 0 / 353.4 MB, free: 1.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.09844, allocations: 0 / 353.4 MB, free: 1.617 MB / 286.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.0006386/0.09908, allocations: 435 kB / 353.8 MB, free: 1.145 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.09913, allocations: 8.031 kB / 353.8 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.928e-05/0.09918, allocations: 12.84 kB / 353.8 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.0994, allocations: 219.9 kB / 354 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.09943, allocations: 12.36 kB / 354 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.052e-05/0.09946, allocations: 12.38 kB / 354.1 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004795/0.09995, allocations: 242.9 kB / 354.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.09997, allocations: 0 / 354.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.09999, allocations: 8 kB / 354.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1, allocations: 4 kB / 354.3 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.1002, allocations: 91.86 kB / 354.4 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006328/0.1009, allocations: 0.5843 MB / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.1012, allocations: 147.9 kB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.1014, allocations: 82.62 kB / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.1014, allocations: 0 / 355.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.1015, allocations: 42.5 kB / 355.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.002e-06/0.1015, allocations: 0 / 355.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004786/0.102, allocations: 185.2 kB / 355.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.196e-05/0.102, allocations: 118.9 kB / 355.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.896e-05/0.1022, allocations: 130.2 kB / 355.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.1022, allocations: 29.7 kB / 355.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.152e-05/0.1022, allocations: 115.8 kB / 355.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.1023, allocations: 27.69 kB / 355.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.025e-05/0.1023, allocations: 37.7 kB / 355.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1025, allocations: 318.8 kB / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.1026, allocations: 39.97 kB / 356.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.1027, allocations: 135.2 kB / 356.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.103, allocations: 189.5 kB / 356.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.103, allocations: 0 / 356.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003511/0.1034, allocations: 205.5 kB / 356.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1034, allocations: 8 kB / 356.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1034, allocations: 4 kB / 356.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.1035, allocations: 8.031 kB / 356.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.1036, allocations: 47.91 kB / 356.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.1036, allocations: 7.938 kB / 356.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.1037, allocations: 23.83 kB / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.1038, allocations: 12 kB / 356.9 MB, free: 13.73 MB / 302.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.0001037/0.1039, allocations: 146.3 kB / 357 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.104, allocations: 85.59 kB / 357.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.1041, allocations: 12.72 kB / 357.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1042, allocations: 4.469 kB / 357.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1042, allocations: 0 / 357.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.1042, allocations: 3.984 kB / 357.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002766/0.1045, allocations: 213.5 kB / 357.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-06/0.1045, allocations: 0 / 357.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.1047, allocations: 43.86 kB / 357.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1047, allocations: 0 / 357.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.1047, allocations: 4 kB / 357.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1047, allocations: 7.984 kB / 357.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1047, allocations: 0 / 357.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005003/0.1052, allocations: 379.3 kB / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.1053, allocations: 88.98 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.1053, allocations: 4 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.1054, allocations: 7.984 kB / 357.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.1055, allocations: 11.98 kB / 357.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.1055, allocations: 4 kB / 357.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.686e-05/0.1056, allocations: 102.8 kB / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1056, allocations: 0 / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003113/0.1059, allocations: 31.97 kB / 358 MB, free: 12.5 MB / 302.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.0001204/0.106, allocations: 103.2 kB / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003141/0.1063, allocations: 128.6 kB / 358.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1063, allocations: 4 kB / 358.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.749e-05/0.1065, allocations: 28.05 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000464/0.1069, allocations: 63.25 kB / 358.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006924/0.1076, allocations: 467.7 kB / 358.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.1079, allocations: 0.7162 MB / 359.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.115e-05/0.108, allocations: 19.44 kB / 359.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.108, allocations: 0 / 359.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Templates: time 0.002952/0.111, allocations: 1.512 MB / 361 MB, free: 9.414 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/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