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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001134/0.001134, allocations: 197 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.183/1.183, allocations: 227.2 MB / 245 MB, free: 7.551 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008665/0.0008666, allocations: 97.64 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002793, allocations: 8 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.1945, allocations: 51.47 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09068/0.2852, allocations: 79.44 MB / 488.8 MB, free: 11.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.2855, allocations: 72.7 kB / 488.9 MB, free: 11.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006284/0.2918, allocations: 2.43 MB / 491.3 MB, free: 8.691 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2918, allocations: 0 / 491.3 MB, free: 8.691 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.2918, allocations: 4 kB / 491.3 MB, free: 8.688 MB / 362.7 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.0004895/0.2923, allocations: 414.9 kB / 491.7 MB, free: 8.234 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2923, allocations: 15.97 kB / 491.8 MB, free: 8.219 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.298e-05/0.2924, allocations: 11.91 kB / 491.8 MB, free: 8.207 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.2926, allocations: 203 kB / 492 MB, free: 7.969 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.2926, allocations: 12 kB / 492 MB, free: 7.957 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.893e-05/0.2926, allocations: 15.95 kB / 492 MB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004446/0.2931, allocations: 236.4 kB / 492.2 MB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.2931, allocations: 11.89 kB / 492.2 MB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.2931, allocations: 4 kB / 492.2 MB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.2932, allocations: 7.938 kB / 492.3 MB, free: 7.664 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002439/0.2934, allocations: 99.81 kB / 492.4 MB, free: 7.566 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005795/0.294, allocations: 0.5843 MB / 492.9 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002474/0.2942, allocations: 152.1 kB / 493.1 MB, free: 6.734 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.2943, allocations: 4 kB / 493.1 MB, free: 6.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.2943, allocations: 38.5 kB / 493.1 MB, free: 6.684 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.605e-06/0.2943, allocations: 3.984 kB / 493.1 MB, free: 6.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004886/0.2948, allocations: 197.4 kB / 493.3 MB, free: 6.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.2949, allocations: 106.8 kB / 493.4 MB, free: 6.352 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.636e-05/0.295, allocations: 122.9 kB / 493.5 MB, free: 6.223 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.295, allocations: 29.7 kB / 493.6 MB, free: 6.188 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.183e-05/0.2951, allocations: 111.9 kB / 493.7 MB, free: 6.074 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.2951, allocations: 27.64 kB / 493.7 MB, free: 6.047 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.2951, allocations: 4 kB / 493.7 MB, free: 6.043 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.2952, allocations: 322.8 kB / 494 MB, free: 5.719 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2953, allocations: 39.97 kB / 494.1 MB, free: 5.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.2955, allocations: 144.3 kB / 494.2 MB, free: 5.496 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.2956, allocations: 51.98 kB / 494.3 MB, free: 5.445 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2956, allocations: 0 / 494.3 MB, free: 5.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003377/0.296, allocations: 201.2 kB / 494.5 MB, free: 5.242 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.296, allocations: 8 kB / 494.5 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.296, allocations: 4 kB / 494.5 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.296, allocations: 4 kB / 494.5 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.2962, allocations: 52.36 kB / 494.5 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.2962, allocations: 15.86 kB / 494.5 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.2964, allocations: 19.84 kB / 494.6 MB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.2964, allocations: 12 kB / 494.6 MB, free: 5.129 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.66e-05/0.2965, allocations: 130.1 kB / 494.7 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.2966, allocations: 85.48 kB / 494.8 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.741e-05/0.2967, allocations: 12.72 kB / 494.8 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.2967, allocations: 8 kB / 494.8 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2967, allocations: 0 / 494.8 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2967, allocations: 0 / 494.8 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002433/0.2969, allocations: 209.5 kB / 495 MB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2969, allocations: 0 / 495 MB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001706/0.2971, allocations: 39.92 kB / 495 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.214e-05/0.2971, allocations: 3.984 kB / 495.1 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.2972, allocations: 3.953 kB / 495.1 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.2972, allocations: 4 kB / 495.1 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2972, allocations: 4 kB / 495.1 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004981/0.2977, allocations: 414 kB / 495.5 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.267e-05/0.2977, allocations: 89.05 kB / 495.6 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.2978, allocations: 7.984 kB / 495.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.2979, allocations: 8 kB / 495.6 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.2979, allocations: 8.047 kB / 495.6 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.298, allocations: 12 kB / 495.6 MB, free: 4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.218e-05/0.298, allocations: 98.36 kB / 495.7 MB, free: 3.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.298, allocations: 0 / 495.7 MB, free: 3.906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003109/0.2983, allocations: 31.84 kB / 495.7 MB, free: 3.875 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001143/0.2985, allocations: 103.2 kB / 495.8 MB, free: 3.762 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000303/0.2988, allocations: 127.7 kB / 495.9 MB, free: 3.637 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2988, allocations: 0 / 495.9 MB, free: 3.637 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.449e-05/0.2989, allocations: 32.8 kB / 496 MB, free: 3.605 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.2992, allocations: 56.03 kB / 496 MB, free: 3.551 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006502/0.2999, allocations: 477.3 kB / 496.5 MB, free: 3.059 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.3002, allocations: 0.7204 MB / 497.2 MB, free: 2.312 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.887e-05/0.3003, allocations: 8.641 kB / 497.2 MB, free: 2.305 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.152e-05/0.3003, allocations: 15.81 kB / 497.2 MB, free: 2.289 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3003, allocations: 0 / 497.2 MB, free: 2.289 MB / 362.7 MB Notification: Performance of Templates: time 0.003129/0.3035, allocations: 0.9938 MB / 498.2 MB, free: 1.332 MB / 362.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches