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.001288/0.001288, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 10.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.77 kB / 306.9 MB, free: 1 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.09351, allocations: 50.53 MB / 357.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003299/0.09685, allocations: 2.066 MB / 359.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009333/0.0978, allocations: 0.5377 MB / 360 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.09794, allocations: 0 / 360 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.09811, allocations: 15.86 kB / 360 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.102e-05/0.09819, allocations: 15.84 kB / 360.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.09848, allocations: 51.89 kB / 360.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001516/0.09864, allocations: 111.6 kB / 360.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.0988, allocations: 53.08 kB / 360.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.435e-05/0.09891, allocations: 47.8 kB / 360.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.395e-05/0.099, allocations: 51.75 kB / 360.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.09903, allocations: 8 kB / 360.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.095e-05/0.09905, allocations: 8 kB / 360.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.044e-05/0.09909, allocations: 27.86 kB / 360.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.218e-05/0.09917, allocations: 55.67 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.0993, allocations: 88.06 kB / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.09931, allocations: 0 / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.09931, allocations: 0 / 360.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.09932, allocations: 0 / 360.6 MB, free: 11.32 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.0005911/0.09992, allocations: 427 kB / 361 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.09996, allocations: 12.03 kB / 361 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.627e-05/0.1, allocations: 12.84 kB / 361 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.1002, allocations: 219.9 kB / 361.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.1002, allocations: 8.375 kB / 361.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.1003, allocations: 12.38 kB / 361.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004642/0.1007, allocations: 246.2 kB / 361.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1008, allocations: 3.938 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.1008, allocations: 4 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1008, allocations: 4 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.1011, allocations: 79.88 kB / 361.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005963/0.1017, allocations: 0.5882 MB / 362.1 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.1019, allocations: 143.9 kB / 362.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.1021, allocations: 74.58 kB / 362.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.1021, allocations: 4 kB / 362.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.1022, allocations: 46.55 kB / 362.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.1022, allocations: 0 / 362.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005059/0.1027, allocations: 185.4 kB / 362.6 MB, free: 9.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.1028, allocations: 106.9 kB / 362.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.1029, allocations: 134.1 kB / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.1029, allocations: 25.7 kB / 362.9 MB, free: 8.742 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.103, allocations: 108.4 kB / 363 MB, free: 8.633 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/0.103, allocations: 35.62 kB / 363 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/0.1031, allocations: 29.72 kB / 363 MB, free: 8.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.1032, allocations: 326.8 kB / 363.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.1033, allocations: 35.91 kB / 363.4 MB, free: 8.199 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.1034, allocations: 136.8 kB / 363.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002665/0.1037, allocations: 180.7 kB / 363.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1037, allocations: 0 / 363.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003439/0.1041, allocations: 189.1 kB / 363.9 MB, free: 7.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1041, allocations: 8 kB / 363.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1041, allocations: 4.438 kB / 363.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.1041, allocations: 11.94 kB / 363.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.1043, allocations: 43.91 kB / 363.9 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.1043, allocations: 7.938 kB / 363.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.909e-05/0.1044, allocations: 27.77 kB / 364 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.1045, allocations: 8 kB / 364 MB, free: 7.496 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 9.222e-05/0.1046, allocations: 125.8 kB / 364.1 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.1047, allocations: 85.53 kB / 364.2 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.903e-05/0.1047, allocations: 24.66 kB / 364.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1048, allocations: 0 / 364.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1048, allocations: 4 kB / 364.2 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1048, allocations: 0 / 364.2 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.105, allocations: 197.6 kB / 364.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.105, allocations: 0 / 364.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.1052, allocations: 39.91 kB / 364.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1052, allocations: 0 / 364.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.1052, allocations: 7.938 kB / 364.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1052, allocations: 4 kB / 364.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1053, allocations: 0 / 364.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.1057, allocations: 378.1 kB / 364.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/0.1058, allocations: 92.94 kB / 364.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.1058, allocations: 3.938 kB / 364.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.106, allocations: 12.06 kB / 364.9 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.106, allocations: 7.984 kB / 364.9 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-06/0.106, allocations: 4 kB / 364.9 MB, free: 6.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.597e-05/0.1061, allocations: 99.27 kB / 365 MB, free: 6.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1061, allocations: 0 / 365 MB, free: 6.332 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.1064, allocations: 24 kB / 365.1 MB, free: 6.309 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 9.693e-05/0.1065, allocations: 95.34 kB / 365.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003084/0.1068, allocations: 127.7 kB / 365.3 MB, free: 6.078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1068, allocations: 0 / 365.3 MB, free: 6.078 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.458e-05/0.1069, allocations: 27.92 kB / 365.3 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.1074, allocations: 56.94 kB / 365.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006762/0.1081, allocations: 469.3 kB / 365.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.1084, allocations: 0.7126 MB / 366.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.023e-05/0.1084, allocations: 15.44 kB / 366.6 MB, free: 4.738 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1084, allocations: 3.938 kB / 366.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of Templates: time 0.002881/0.1113, allocations: 1.482 MB / 368 MB, free: 3.266 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 -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