Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 107.2 kB / 17.06 MB, free: 5.98 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.001715/0.001715, allocations: 198.8 kB / 18 MB, free: 5.059 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.484/1.484, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 51.92 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3933, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003388/0.3967, allocations: 2.007 MB / 402.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008733/0.3976, allocations: 0.5025 MB / 403.2 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.3977, allocations: 0 / 403.2 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.3978, allocations: 23.8 kB / 403.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.133e-05/0.3979, allocations: 23.78 kB / 403.3 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.3983, allocations: 58.5 kB / 403.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.3984, allocations: 123.6 kB / 403.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.3986, allocations: 49.42 kB / 403.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.914e-05/0.3987, allocations: 47.8 kB / 403.5 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.589e-05/0.3988, allocations: 59.69 kB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.3989, allocations: 12 kB / 403.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.14e-05/0.3989, allocations: 12 kB / 403.6 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.504e-05/0.3989, allocations: 23.92 kB / 403.6 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.206e-05/0.399, allocations: 55.67 kB / 403.7 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002035/0.3992, allocations: 128.6 kB / 403.8 MB, free: 5.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3992, allocations: 0 / 403.8 MB, free: 5.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3992, allocations: 0 / 403.8 MB, free: 5.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.3993, allocations: 4 kB / 403.8 MB, free: 5.762 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006818/0.3999, allocations: 427 kB / 404.2 MB, free: 5.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.4, allocations: 12.03 kB / 404.3 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.416e-05/0.4, allocations: 12.75 kB / 404.3 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.4003, allocations: 200.1 kB / 404.5 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.4003, allocations: 8.375 kB / 404.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.4004, allocations: 16.38 kB / 404.5 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005242/0.4009, allocations: 250.8 kB / 404.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.401, allocations: 4 kB / 404.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.401, allocations: 4 kB / 404.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.401, allocations: 7.984 kB / 404.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003086/0.4013, allocations: 87.88 kB / 404.8 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007645/0.4021, allocations: 0.5842 MB / 405.4 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002907/0.4024, allocations: 151.9 kB / 405.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.4026, allocations: 74.64 kB / 405.6 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.4026, allocations: 0 / 405.6 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.4026, allocations: 42.5 kB / 405.7 MB, free: 3.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.4027, allocations: 0 / 405.7 MB, free: 3.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005406/0.4032, allocations: 177.3 kB / 405.9 MB, free: 3.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.4033, allocations: 114.8 kB / 406 MB, free: 3.363 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.4034, allocations: 126.1 kB / 406.1 MB, free: 3.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.4034, allocations: 25.7 kB / 406.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.976e-05/0.4035, allocations: 119.9 kB / 406.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.679e-05/0.4035, allocations: 27.64 kB / 406.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.4036, allocations: 37.78 kB / 406.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4037, allocations: 326.8 kB / 406.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.4039, allocations: 35.97 kB / 406.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.4041, allocations: 124.9 kB / 406.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.4044, allocations: 176.7 kB / 406.9 MB, free: 2.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.4044, allocations: 0 / 406.9 MB, free: 2.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003786/0.4048, allocations: 189.4 kB / 407.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.4048, allocations: 8 kB / 407.1 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.4048, allocations: 4 kB / 407.1 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.4049, allocations: 8.312 kB / 407.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.4051, allocations: 43.91 kB / 407.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.4051, allocations: 7.938 kB / 407.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.4052, allocations: 23.84 kB / 407.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.4052, allocations: 12.19 kB / 407.2 MB, free: 1.957 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001006/0.4053, allocations: 134.4 kB / 407.4 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.4055, allocations: 77.59 kB / 407.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.615e-05/0.4055, allocations: 20.66 kB / 407.5 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.4055, allocations: 0 / 407.5 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.4055, allocations: 8 kB / 407.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4055, allocations: 0 / 407.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.4058, allocations: 209.4 kB / 407.7 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4058, allocations: 0 / 407.7 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.406, allocations: 43.97 kB / 407.7 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.406, allocations: 0 / 407.7 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.406, allocations: 7.938 kB / 407.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.406, allocations: 0 / 407.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4061, allocations: 0 / 407.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005563/0.4066, allocations: 371.7 kB / 408.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.4067, allocations: 92.97 kB / 408.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.4067, allocations: 11.92 kB / 408.2 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.4069, allocations: 4 kB / 408.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.863e-05/0.4069, allocations: 11.98 kB / 408.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.407, allocations: 4 kB / 408.2 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.392e-05/0.407, allocations: 95.27 kB / 408.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.407, allocations: 0 / 408.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.4074, allocations: 39.91 kB / 408.3 MB, free: 0.7383 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 (14): * Single equations (assignments): 14 * 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.0001972/0.4076, allocations: 106.6 kB / 408.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000358/0.408, allocations: 118.6 kB / 408.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.408, allocations: 0 / 408.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.4081, allocations: 31.98 kB / 408.6 MB, free: 496 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005377/0.4086, allocations: 48.33 kB / 408.6 MB, free: 448 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007647/0.4094, allocations: 393.9 kB / 409 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.4097, allocations: 0.7162 MB / 409.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.186e-05/0.4098, allocations: 8.641 kB / 409.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/0.4099, allocations: 15.44 kB / 409.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4099, allocations: 4 kB / 409.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of Templates: time 0.004311/0.4142, allocations: 1.187 MB / 411 MB, free: 14.1 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches