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.001262/0.001262, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 227.4 MB / 246.9 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 65.08 kB / 306.9 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08035/0.08146, allocations: 50.52 MB / 357.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003001/0.08451, allocations: 2.072 MB / 359.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008203/0.08535, allocations: 0.561 MB / 360.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.801e-05/0.08544, allocations: 4 kB / 360.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.889e-05/0.08556, allocations: 11.86 kB / 360.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.08568, allocations: 19.84 kB / 360.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001956/0.08588, allocations: 55.45 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.08602, allocations: 115.6 kB / 360.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.08615, allocations: 64.88 kB / 360.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.393e-05/0.08622, allocations: 43.73 kB / 360.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.652e-05/0.08631, allocations: 55.77 kB / 360.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.109e-05/0.08634, allocations: 8 kB / 360.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.029e-05/0.08636, allocations: 8 kB / 360.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.284e-05/0.0864, allocations: 31.84 kB / 360.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.656e-05/0.08646, allocations: 51.73 kB / 360.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.08657, allocations: 91.98 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.08658, allocations: 0 / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.08659, allocations: 0 / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.08659, allocations: 0 / 360.6 MB, free: 11.11 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005435/0.08714, allocations: 427 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.08718, allocations: 12.03 kB / 361 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.08723, allocations: 16.84 kB / 361.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.08741, allocations: 212 kB / 361.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.08743, allocations: 8.375 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.249e-05/0.08747, allocations: 12.38 kB / 361.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004545/0.08793, allocations: 254.8 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.08795, allocations: 0 / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.08798, allocations: 8 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.08799, allocations: 0 / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002456/0.08824, allocations: 83.88 kB / 361.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005723/0.08882, allocations: 0.5998 MB / 362.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.08914, allocations: 147.9 kB / 362.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.08931, allocations: 74.64 kB / 362.4 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.08934, allocations: 4 kB / 362.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.08937, allocations: 42.5 kB / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.182e-06/0.08937, allocations: 0 / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004869/0.08986, allocations: 185.5 kB / 362.7 MB, free: 8.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.08993, allocations: 110.8 kB / 362.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.551e-05/0.09002, allocations: 130.2 kB / 362.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.09004, allocations: 29.83 kB / 362.9 MB, free: 8.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.09011, allocations: 119.7 kB / 363 MB, free: 8.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.09013, allocations: 23.8 kB / 363.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.09019, allocations: 29.72 kB / 363.1 MB, free: 8.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.146e-05/0.09028, allocations: 322.8 kB / 363.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.0904, allocations: 35.97 kB / 363.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.09056, allocations: 145 kB / 363.6 MB, free: 7.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.09084, allocations: 193.5 kB / 363.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.09085, allocations: 0 / 363.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003515/0.09121, allocations: 201 kB / 364 MB, free: 7.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.09123, allocations: 11.94 kB / 364 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.09124, allocations: 4.469 kB / 364 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.09126, allocations: 8 kB / 364 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.09141, allocations: 39.97 kB / 364 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.455e-06/0.09143, allocations: 11.94 kB / 364 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.09154, allocations: 23.83 kB / 364.1 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.09156, allocations: 12 kB / 364.1 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 8.947e-05/0.09165, allocations: 133.7 kB / 364.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.09179, allocations: 89.84 kB / 364.3 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.786e-05/0.09188, allocations: 24.7 kB / 364.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.09189, allocations: 4 kB / 364.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.0919, allocations: 4 kB / 364.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.09191, allocations: 0 / 364.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002371/0.09215, allocations: 205.5 kB / 364.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.09216, allocations: 4 kB / 364.5 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.09234, allocations: 31.97 kB / 364.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.09235, allocations: 4 kB / 364.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.09236, allocations: 4 kB / 364.6 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.09237, allocations: 4 kB / 364.6 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.09238, allocations: 4 kB / 364.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000491/0.09287, allocations: 386.7 kB / 365 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.34e-05/0.09293, allocations: 88.95 kB / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.09295, allocations: 0 / 365 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.0931, allocations: 16.05 kB / 365.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.951e-05/0.09313, allocations: 4 kB / 365.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.09315, allocations: 4 kB / 365.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.071e-05/0.0932, allocations: 99.27 kB / 365.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09321, allocations: 0 / 365.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.09351, allocations: 27.91 kB / 365.2 MB, free: 6.016 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 8.723e-05/0.09361, allocations: 107.7 kB / 365.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002883/0.0939, allocations: 123.8 kB / 365.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.09392, allocations: 0 / 365.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.289e-05/0.09401, allocations: 28.91 kB / 365.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.09446, allocations: 55.89 kB / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006293/0.0951, allocations: 469.4 kB / 366 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.09534, allocations: 0.7126 MB / 366.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.09538, allocations: 15.44 kB / 366.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.09539, allocations: 0 / 366.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of Templates: time 0.002694/0.09809, allocations: 1.527 MB / 368.2 MB, free: 2.918 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches