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/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.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/Complex trunk/package.mo): time 0.001488/0.001488, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009287/0.000929, allocations: 95 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.19e-05/3.21e-05, allocations: 4 kB / 350.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 51.49 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3143/0.4239, allocations: 79.41 MB / 481.4 MB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4242, allocations: 74.64 kB / 481.5 MB, free: 9.965 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006067/0.4303, allocations: 2.432 MB / 483.9 MB, free: 7.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4303, allocations: 0 / 483.9 MB, free: 7.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.4303, allocations: 4 kB / 483.9 MB, free: 7.934 MB / 346.7 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.0004154/0.4307, allocations: 407.7 kB / 484.3 MB, free: 7.508 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.4308, allocations: 8.031 kB / 484.4 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.49e-05/0.4308, allocations: 16.53 kB / 484.4 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.431, allocations: 195.7 kB / 484.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.431, allocations: 11.38 kB / 484.6 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.943e-05/0.4311, allocations: 11.75 kB / 484.6 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003671/0.4314, allocations: 234.2 kB / 484.8 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.4315, allocations: 0 / 484.8 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.4315, allocations: 4.812 kB / 484.8 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.4315, allocations: 4 kB / 484.8 MB, free: 7.043 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.4316, allocations: 54.25 kB / 484.9 MB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005386/0.4322, allocations: 0.5998 MB / 485.5 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002571/0.4324, allocations: 136.6 kB / 485.6 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.509e-05/0.4325, allocations: 68.59 kB / 485.7 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.4326, allocations: 4.75 kB / 485.7 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.4326, allocations: 39.34 kB / 485.7 MB, free: 6.133 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.4326, allocations: 0 / 485.7 MB, free: 6.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002615/0.4329, allocations: 115.8 kB / 485.8 MB, free: 6.031 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.4329, allocations: 114.3 kB / 485.9 MB, free: 5.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.315e-05/0.433, allocations: 124.1 kB / 486.1 MB, free: 5.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.433, allocations: 31.3 kB / 486.1 MB, free: 5.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.048e-05/0.4331, allocations: 110.4 kB / 486.2 MB, free: 5.645 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.4331, allocations: 26.89 kB / 486.2 MB, free: 5.621 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-06/0.4331, allocations: 3.125 kB / 486.2 MB, free: 5.621 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.536e-05/0.4332, allocations: 322.4 kB / 486.5 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.151e-05/0.4332, allocations: 30 kB / 486.6 MB, free: 5.277 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.58e-05/0.4333, allocations: 123.6 kB / 486.7 MB, free: 5.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.068e-05/0.4334, allocations: 45.23 kB / 486.7 MB, free: 5.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4334, allocations: 0 / 486.7 MB, free: 5.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001889/0.4336, allocations: 162.7 kB / 486.9 MB, free: 4.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.4336, allocations: 12.03 kB / 486.9 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4336, allocations: 4 kB / 486.9 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.4336, allocations: 7.953 kB / 486.9 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.4338, allocations: 47.91 kB / 487 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.4338, allocations: 12.5 kB / 487 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.4339, allocations: 27.45 kB / 487 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.4339, allocations: 8 kB / 487 MB, free: 4.832 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.259e-05/0.434, allocations: 122.4 kB / 487.1 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.4341, allocations: 77.73 kB / 487.2 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.03e-05/0.4342, allocations: 23.48 kB / 487.2 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.4342, allocations: 7.953 kB / 487.2 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4342, allocations: 0.875 kB / 487.2 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.4342, allocations: 0 / 487.2 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.4345, allocations: 207.7 kB / 487.4 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4345, allocations: 0 / 487.4 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.4346, allocations: 47.67 kB / 487.5 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.4347, allocations: 0 / 487.5 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.4347, allocations: 9.609 kB / 487.5 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4347, allocations: 3.938 kB / 487.5 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4347, allocations: 3.953 kB / 487.5 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002703/0.435, allocations: 361.8 kB / 487.9 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.74e-05/0.435, allocations: 96.97 kB / 488 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.435, allocations: 5.359 kB / 488 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.4352, allocations: 15.36 kB / 488 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.4352, allocations: 7.984 kB / 488 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.4352, allocations: 4 kB / 488 MB, free: 3.848 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.66e-05/0.4353, allocations: 95.66 kB / 488.1 MB, free: 3.762 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4353, allocations: 4.062 kB / 488.1 MB, free: 3.758 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000276/0.4355, allocations: 29.19 kB / 488.1 MB, free: 3.734 MB / 346.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 () * 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 (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 9.748e-05/0.4356, allocations: 113.9 kB / 488.2 MB, free: 3.617 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001516/0.4358, allocations: 87.86 kB / 488.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.4358, allocations: 0.9375 kB / 488.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.249e-05/0.4359, allocations: 30.23 kB / 488.3 MB, free: 3.527 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.4362, allocations: 43 kB / 488.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000441/0.4366, allocations: 292.2 kB / 488.7 MB, free: 3.223 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.4368, allocations: 0.7166 MB / 489.4 MB, free: 2.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.758e-05/0.4368, allocations: 17.2 kB / 489.4 MB, free: 2.461 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.645e-05/0.4368, allocations: 11.44 kB / 489.4 MB, free: 2.449 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4369, allocations: 0 / 489.4 MB, free: 2.449 MB / 346.7 MB Notification: Performance of Templates: time 0.002885/0.4397, allocations: 1.03 MB / 490.4 MB, free: 1.473 MB / 346.7 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","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches