Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001615/0.001615, allocations: 102.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001976/0.001976, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.001351, allocations: 60.38 kB / 306.9 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1039, allocations: 50.53 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003464/0.1074, allocations: 1.993 MB / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.1086, allocations: 0.5687 MB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.1088, allocations: 4 kB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.1089, allocations: 19.8 kB / 360.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.1091, allocations: 31.72 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002874/0.1094, allocations: 55.88 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.1096, allocations: 119.6 kB / 360.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.1097, allocations: 65.34 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.646e-05/0.1098, allocations: 47.8 kB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.812e-05/0.1099, allocations: 55.77 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.1099, allocations: 8 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.208e-05/0.11, allocations: 12 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.656e-05/0.11, allocations: 35.78 kB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.099e-05/0.1101, allocations: 55.67 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.1103, allocations: 123.8 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1103, allocations: 0 / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1103, allocations: 4 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.1103, allocations: 0 / 360.7 MB, free: 10.91 MB / 302.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.0006347/0.111, allocations: 435 kB / 361.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.111, allocations: 8.031 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.86e-05/0.1111, allocations: 16.84 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.1113, allocations: 212 kB / 361.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1113, allocations: 12.38 kB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.326e-05/0.1113, allocations: 12.38 kB / 361.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.1118, allocations: 246.9 kB / 361.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.1119, allocations: 3.938 kB / 361.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.1119, allocations: 4 kB / 361.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.1119, allocations: 11.98 kB / 361.6 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000255/0.1122, allocations: 90.69 kB / 361.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006892/0.1128, allocations: 0.5881 MB / 362.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/0.1132, allocations: 155.9 kB / 362.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.1134, allocations: 78.58 kB / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.1134, allocations: 7.984 kB / 362.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.1135, allocations: 38.55 kB / 362.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.1135, allocations: 0 / 362.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005135/0.114, allocations: 185.4 kB / 362.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.1141, allocations: 114.8 kB / 362.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1142, allocations: 126.2 kB / 363 MB, free: 8.328 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.1142, allocations: 29.7 kB / 363 MB, free: 8.293 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.1143, allocations: 115.7 kB / 363.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.1143, allocations: 20.17 kB / 363.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.647e-05/0.1144, allocations: 33.72 kB / 363.2 MB, free: 8.117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.705e-05/0.1145, allocations: 326.8 kB / 363.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.1146, allocations: 39.97 kB / 363.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.1148, allocations: 140.6 kB / 363.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/0.1151, allocations: 185.5 kB / 363.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1151, allocations: 4 kB / 363.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003851/0.1155, allocations: 205.2 kB / 364 MB, free: 7.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1155, allocations: 4 kB / 364 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1155, allocations: 4 kB / 364 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1155, allocations: 4 kB / 364.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.1157, allocations: 43.92 kB / 364.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.1157, allocations: 7.984 kB / 364.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.1158, allocations: 19.84 kB / 364.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.1158, allocations: 12.28 kB / 364.1 MB, free: 7.031 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 9.555e-05/0.116, allocations: 133.7 kB / 364.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001471/0.1161, allocations: 93.52 kB / 364.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.1162, allocations: 16.72 kB / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.1163, allocations: 0 / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.1163, allocations: 4 kB / 364.4 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1163, allocations: 240 / 364.4 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.1166, allocations: 213.4 kB / 364.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1166, allocations: 0 / 364.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.1168, allocations: 43.91 kB / 364.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.1168, allocations: 3.984 kB / 364.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1168, allocations: 4 kB / 364.6 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.1168, allocations: 4 kB / 364.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1168, allocations: 0 / 364.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.1173, allocations: 386.5 kB / 365 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.1174, allocations: 88.98 kB / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.1174, allocations: 11.94 kB / 365.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.1176, allocations: 7.984 kB / 365.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.1176, allocations: 4 kB / 365.1 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.385e-06/0.1176, allocations: 4 kB / 365.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.796e-05/0.1177, allocations: 101.6 kB / 365.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1177, allocations: 4.062 kB / 365.2 MB, free: 5.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003327/0.1181, allocations: 35.91 kB / 365.3 MB, free: 5.797 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.0001028/0.1182, allocations: 95.25 kB / 365.4 MB, free: 5.691 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000337/0.1185, allocations: 128.5 kB / 365.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1185, allocations: 4.188 kB / 365.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.1186, allocations: 31.91 kB / 365.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.1191, allocations: 51.89 kB / 365.6 MB, free: 5.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000692/0.1198, allocations: 401.3 kB / 366 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.1201, allocations: 0.7162 MB / 366.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.038e-05/0.1201, allocations: 9.078 kB / 366.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.756e-05/0.1202, allocations: 19.44 kB / 366.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1202, allocations: 0 / 366.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of Templates: time 0.003814/0.124, allocations: 1.192 MB / 367.9 MB, free: 3.105 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches