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.001506/0.001506, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001611/0.001611, allocations: 201.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3001, allocations: 50.54 MB / 409.2 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003058/0.3032, allocations: 2.017 MB / 411.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009248/0.3041, allocations: 0.5531 MB / 411.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.395e-05/0.3042, allocations: 8 kB / 411.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.3043, allocations: 15.8 kB / 411.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.3045, allocations: 31.72 kB / 411.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.3047, allocations: 59.86 kB / 411.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001613/0.3049, allocations: 123.6 kB / 412 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.3051, allocations: 61.36 kB / 412.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.29e-05/0.3052, allocations: 51.78 kB / 412.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.605e-05/0.3053, allocations: 55.7 kB / 412.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.3053, allocations: 12 kB / 412.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.92e-05/0.3053, allocations: 8 kB / 412.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.43e-05/0.3054, allocations: 31.84 kB / 412.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.891e-05/0.3054, allocations: 55.73 kB / 412.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.3056, allocations: 131.3 kB / 412.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3056, allocations: 4 kB / 412.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3056, allocations: 4 kB / 412.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.3056, allocations: 0 / 412.4 MB, free: 14.33 MB / 334.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.0005822/0.3062, allocations: 428.4 kB / 412.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.3063, allocations: 12.03 kB / 412.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.069e-05/0.3063, allocations: 16.75 kB / 412.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.3066, allocations: 200.1 kB / 413.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.3066, allocations: 12.38 kB / 413.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.3066, allocations: 16.38 kB / 413.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.3071, allocations: 250.8 kB / 413.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.3071, allocations: 7.938 kB / 413.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.3071, allocations: 4 kB / 413.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3071, allocations: 4 kB / 413.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.3074, allocations: 87.86 kB / 413.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005804/0.308, allocations: 0.5843 MB / 414 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.3083, allocations: 159.8 kB / 414.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.3085, allocations: 78.64 kB / 414.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/0.3085, allocations: 0 / 414.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.3086, allocations: 42.48 kB / 414.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.3086, allocations: 0 / 414.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000497/0.3091, allocations: 189.4 kB / 414.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.3091, allocations: 106.8 kB / 414.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.916e-05/0.3092, allocations: 134 kB / 414.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.3093, allocations: 25.7 kB / 414.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.453e-05/0.3093, allocations: 112 kB / 414.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.3094, allocations: 31.64 kB / 414.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.3094, allocations: 33.72 kB / 414.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3095, allocations: 322.9 kB / 415.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.3096, allocations: 35.97 kB / 415.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.3098, allocations: 144.6 kB / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.3101, allocations: 185.5 kB / 415.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3101, allocations: 3.938 kB / 415.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003414/0.3104, allocations: 197.2 kB / 415.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3105, allocations: 10.81 kB / 415.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3105, allocations: 7.938 kB / 415.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3105, allocations: 4 kB / 415.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.3106, allocations: 43.98 kB / 415.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.3107, allocations: 11.92 kB / 415.9 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.3108, allocations: 20.22 kB / 415.9 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.3108, allocations: 12 kB / 415.9 MB, free: 10.46 MB / 334.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.796e-05/0.3109, allocations: 133.7 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.3111, allocations: 93.81 kB / 416.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.178e-05/0.3111, allocations: 12.81 kB / 416.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.3111, allocations: 7.938 kB / 416.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3111, allocations: 0 / 416.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3111, allocations: 0 / 416.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002545/0.3114, allocations: 209.5 kB / 416.4 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3114, allocations: 0 / 416.4 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001706/0.3116, allocations: 43.97 kB / 416.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3116, allocations: 0 / 416.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.3116, allocations: 0 / 416.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3116, allocations: 4 kB / 416.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3116, allocations: 0 / 416.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004796/0.3121, allocations: 394.2 kB / 416.8 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.083e-05/0.3122, allocations: 85.05 kB / 416.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.3122, allocations: 4 kB / 416.9 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.3123, allocations: 7.984 kB / 416.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.68e-05/0.3124, allocations: 4.234 kB / 416.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.3124, allocations: 12 kB / 416.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.933e-05/0.3125, allocations: 99.25 kB / 417 MB, free: 9.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3125, allocations: 4.062 kB / 417 MB, free: 9.262 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.3128, allocations: 27.94 kB / 417 MB, free: 9.234 MB / 334.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 9.423e-05/0.3129, allocations: 111.2 kB / 417.1 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003086/0.3132, allocations: 116.6 kB / 417.2 MB, free: 9.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3132, allocations: 4.062 kB / 417.3 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.113e-05/0.3133, allocations: 27.97 kB / 417.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004574/0.3138, allocations: 63.89 kB / 417.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006487/0.3144, allocations: 397.7 kB / 417.7 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.3147, allocations: 0.7123 MB / 418.4 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.711e-05/0.3148, allocations: 5.094 kB / 418.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.3148, allocations: 19.44 kB / 418.5 MB, free: 7.727 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3148, allocations: 0 / 418.5 MB, free: 7.727 MB / 334.1 MB Notification: Performance of Templates: time 0.003765/0.3186, allocations: 1.227 MB / 419.7 MB, free: 6.516 MB / 334.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