Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001157, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 64.23 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1024, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003503/0.106, allocations: 2.008 MB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1072, allocations: 0.5338 MB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.1074, allocations: 3.938 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.1075, allocations: 19.8 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.129e-05/0.1077, allocations: 19.78 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.108, allocations: 63.81 kB / 361.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002103/0.1083, allocations: 119.6 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.1085, allocations: 61.39 kB / 361.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.826e-05/0.1086, allocations: 55.72 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.797e-05/0.1087, allocations: 47.77 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.425e-05/0.1087, allocations: 12 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.399e-05/0.1088, allocations: 12 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.923e-05/0.1088, allocations: 23.92 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.245e-05/0.1089, allocations: 63.66 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002079/0.1091, allocations: 119.5 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1091, allocations: 4 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1091, allocations: 0 / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1092, allocations: 0 / 362 MB, free: 10.18 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008064/0.11, allocations: 427 kB / 362.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.11, allocations: 12.03 kB / 362.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.1101, allocations: 12.83 kB / 362.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.1104, allocations: 212 kB / 362.7 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.1104, allocations: 16.31 kB / 362.7 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.1105, allocations: 12.38 kB / 362.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005122/0.111, allocations: 242.2 kB / 363 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.111, allocations: 7.938 kB / 363 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.1111, allocations: 7.938 kB / 363 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.1111, allocations: 4 kB / 363 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.1113, allocations: 87.86 kB / 363.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006169/0.1119, allocations: 0.5843 MB / 363.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.1122, allocations: 147.9 kB / 363.8 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.1124, allocations: 78.62 kB / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.1124, allocations: 0 / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.1124, allocations: 38.55 kB / 363.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.1124, allocations: 0 / 363.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004909/0.1129, allocations: 185.2 kB / 364.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.651e-05/0.113, allocations: 106.8 kB / 364.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.1132, allocations: 130.1 kB / 364.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.1132, allocations: 25.7 kB / 364.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.287e-05/0.1133, allocations: 111.8 kB / 364.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.1133, allocations: 35.7 kB / 364.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/0.1134, allocations: 37.7 kB / 364.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1135, allocations: 326.8 kB / 364.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.1136, allocations: 27.98 kB / 364.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.1138, allocations: 139.2 kB / 365 MB, free: 6.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002874/0.1141, allocations: 176.7 kB / 365.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1141, allocations: 0 / 365.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003574/0.1145, allocations: 189.2 kB / 365.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.1145, allocations: 11.98 kB / 365.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.1145, allocations: 7.984 kB / 365.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.987e-05/0.1146, allocations: 7.938 kB / 365.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.1148, allocations: 40.3 kB / 365.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.1148, allocations: 7.938 kB / 365.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.1149, allocations: 24.23 kB / 365.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.1149, allocations: 12 kB / 365.5 MB, free: 6.355 MB / 302.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.0001022/0.115, allocations: 133.7 kB / 365.6 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.1152, allocations: 81.59 kB / 365.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.476e-05/0.1152, allocations: 24.64 kB / 365.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1152, allocations: 0 / 365.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.1152, allocations: 4 kB / 365.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1153, allocations: 0 / 365.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002619/0.1155, allocations: 201.6 kB / 365.9 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1155, allocations: 11.88 kB / 365.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.1157, allocations: 31.98 kB / 365.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1157, allocations: 0 / 365.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.1157, allocations: 11.92 kB / 366 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1157, allocations: 4 kB / 366 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1157, allocations: 0 / 366 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004782/0.1162, allocations: 375.4 kB / 366.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.594e-05/0.1163, allocations: 88.98 kB / 366.4 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.1163, allocations: 3.938 kB / 366.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1165, allocations: 11.98 kB / 366.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.139e-05/0.1165, allocations: 4 kB / 366.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.1165, allocations: 7.984 kB / 366.4 MB, free: 5.277 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.719e-05/0.1166, allocations: 102.3 kB / 366.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1166, allocations: 4 kB / 366.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.1169, allocations: 24 kB / 366.6 MB, free: 5.152 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 (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.0001192/0.117, allocations: 107.2 kB / 366.7 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002989/0.1174, allocations: 108.6 kB / 366.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1174, allocations: 4.062 kB / 366.8 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.193e-05/0.1175, allocations: 35.91 kB / 366.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.118, allocations: 48.81 kB / 366.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006907/0.1187, allocations: 389.6 kB / 367.2 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.1189, allocations: 0.72 MB / 368 MB, free: 3.676 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.32e-05/0.119, allocations: 12.59 kB / 368 MB, free: 3.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.652e-05/0.119, allocations: 19.44 kB / 368 MB, free: 3.645 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.119, allocations: 0 / 368 MB, free: 3.645 MB / 302.1 MB Notification: Performance of Templates: time 0.003694/0.1227, allocations: 1.16 MB / 369.2 MB, free: 2.531 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches