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.001564/0.001564, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001885/0.001886, allocations: 209.7 kB / 18.79 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 246.9 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 64.48 kB / 306.9 MB, free: 1.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09496, allocations: 50.53 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003596/0.0986, allocations: 2.101 MB / 359.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.09978, allocations: 0.5922 MB / 360.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.09995, allocations: 7.938 kB / 360.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.1001, allocations: 11.92 kB / 360.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.1003, allocations: 23.78 kB / 360.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.1007, allocations: 59.89 kB / 360.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.1009, allocations: 135.5 kB / 360.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.101, allocations: 45.53 kB / 360.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.1012, allocations: 39.86 kB / 360.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.925e-05/0.1012, allocations: 59.69 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.945e-05/0.1013, allocations: 8 kB / 360.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.621e-05/0.1013, allocations: 15.94 kB / 360.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.487e-05/0.1014, allocations: 31.84 kB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.067e-05/0.1015, allocations: 63.61 kB / 360.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.1016, allocations: 104 kB / 360.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1016, allocations: 0 / 360.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1017, allocations: 0 / 360.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1017, allocations: 0 / 360.7 MB, free: 11.19 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006917/0.1024, allocations: 454.9 kB / 361.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1024, allocations: 12.03 kB / 361.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.1025, allocations: 20.66 kB / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/0.1027, allocations: 221.1 kB / 361.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.1027, allocations: 12.38 kB / 361.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.1028, allocations: 16.36 kB / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.1033, allocations: 249.3 kB / 361.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1033, allocations: 3.984 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.1034, allocations: 4 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1034, allocations: 4 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003111/0.1037, allocations: 83.88 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000693/0.1044, allocations: 0.6076 MB / 362.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000371/0.1048, allocations: 151.9 kB / 362.5 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.1049, allocations: 70.64 kB / 362.6 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.105, allocations: 4 kB / 362.6 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.105, allocations: 50.42 kB / 362.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.105, allocations: 0 / 362.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000519/0.1055, allocations: 181.4 kB / 362.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/0.1056, allocations: 114.8 kB / 362.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.1058, allocations: 156.8 kB / 363.1 MB, free: 8.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.1058, allocations: 25.7 kB / 363.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.303e-05/0.1059, allocations: 120.4 kB / 363.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.486e-05/0.1059, allocations: 27.64 kB / 363.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.321e-05/0.106, allocations: 37.7 kB / 363.3 MB, free: 8.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1061, allocations: 322.8 kB / 363.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.1063, allocations: 35.97 kB / 363.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.1064, allocations: 136.5 kB / 363.8 MB, free: 7.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.1067, allocations: 193.4 kB / 364 MB, free: 7.543 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1068, allocations: 8 kB / 364 MB, free: 7.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003666/0.1072, allocations: 193.5 kB / 364.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1072, allocations: 8.031 kB / 364.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1072, allocations: 4 kB / 364.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.1073, allocations: 8 kB / 364.2 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.1075, allocations: 43.91 kB / 364.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.1075, allocations: 7.938 kB / 364.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.1076, allocations: 24.06 kB / 364.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.1076, allocations: 15.94 kB / 364.3 MB, free: 7.23 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.0001073/0.1077, allocations: 137.7 kB / 364.4 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.1079, allocations: 89.59 kB / 364.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.108, allocations: 24.69 kB / 364.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.108, allocations: 4.469 kB / 364.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.108, allocations: 0 / 364.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.108, allocations: 3.938 kB / 364.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002769/0.1083, allocations: 221.4 kB / 364.8 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1083, allocations: 0 / 364.8 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.1085, allocations: 39.92 kB / 364.8 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1085, allocations: 4 kB / 364.8 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.1086, allocations: 4 kB / 364.8 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.1086, allocations: 11.98 kB / 364.8 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1086, allocations: 0 / 364.8 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005032/0.1091, allocations: 383.2 kB / 365.2 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.148e-05/0.1092, allocations: 105.1 kB / 365.3 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.1092, allocations: 0 / 365.3 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.1093, allocations: 8 kB / 365.3 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.349e-05/0.1094, allocations: 7.984 kB / 365.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.1094, allocations: 4 kB / 365.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.395e-05/0.1095, allocations: 123.4 kB / 365.4 MB, free: 5.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1095, allocations: 0 / 365.4 MB, free: 5.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.1098, allocations: 31.84 kB / 365.5 MB, free: 5.949 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.0001097/0.1099, allocations: 107.7 kB / 365.6 MB, free: 5.832 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000301/0.1102, allocations: 119.8 kB / 365.7 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1103, allocations: 0 / 365.7 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.082e-05/0.1104, allocations: 28.86 kB / 365.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005248/0.1109, allocations: 67.94 kB / 365.8 MB, free: 5.621 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007904/0.1117, allocations: 497.5 kB / 366.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.112, allocations: 0.7204 MB / 367 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.401e-05/0.112, allocations: 23.44 kB / 367 MB, free: 4.316 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.112, allocations: 0 / 367 MB, free: 4.316 MB / 302.1 MB Notification: Performance of Templates: time 0.00342/0.1154, allocations: 1.614 MB / 368.6 MB, free: 2.715 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches