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.001004/0.001004, allocations: 101.8 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003198, allocations: 7.984 kB / 307.1 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1342, allocations: 51.52 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003283/0.1375, allocations: 1.673 MB / 360.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.139, allocations: 0.5419 MB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.1392, allocations: 3.938 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.1394, allocations: 7.938 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.1396, allocations: 27.78 kB / 360.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003649/0.14, allocations: 43.89 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.1402, allocations: 115.6 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.1404, allocations: 52.88 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1405, allocations: 39.8 kB / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.1406, allocations: 43.78 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.2e-05/0.1407, allocations: 4 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.368e-05/0.1407, allocations: 7.938 kB / 361.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.788e-05/0.1408, allocations: 27.91 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.388e-05/0.1408, allocations: 41.64 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.141, allocations: 84.03 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.141, allocations: 0 / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.141, allocations: 0 / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1411, allocations: 4 kB / 361.3 MB, free: 10.69 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.0007924/0.1419, allocations: 415 kB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.1419, allocations: 12.03 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/0.142, allocations: 11.81 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.1423, allocations: 198.8 kB / 362 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.1423, allocations: 12 kB / 362 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.194e-05/0.1424, allocations: 12 kB / 362 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007085/0.1431, allocations: 261.7 kB / 362.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.1432, allocations: 0 / 362.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.666e-05/0.1432, allocations: 4 kB / 362.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1432, allocations: 7.938 kB / 362.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003625/0.1436, allocations: 102.7 kB / 362.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008972/0.1445, allocations: 0.5959 MB / 362.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.145, allocations: 155.9 kB / 363.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.1452, allocations: 82.64 kB / 363.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.1452, allocations: 0 / 363.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.1453, allocations: 50.48 kB / 363.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.1453, allocations: 0 / 363.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007723/0.1461, allocations: 189.4 kB / 363.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.137e-05/0.1462, allocations: 114.9 kB / 363.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.1463, allocations: 130.1 kB / 363.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.1464, allocations: 25.7 kB / 363.7 MB, free: 8.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.068e-05/0.1465, allocations: 119.9 kB / 363.8 MB, free: 7.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.298e-05/0.1465, allocations: 23.73 kB / 363.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-06/0.1465, allocations: 4 kB / 363.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1467, allocations: 322.8 kB / 364.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.1468, allocations: 44.34 kB / 364.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.1471, allocations: 141.4 kB / 364.3 MB, free: 7.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001845/0.1473, allocations: 59.91 kB / 364.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.1473, allocations: 4 kB / 364.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00054/0.1478, allocations: 205.5 kB / 364.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.1479, allocations: 12.03 kB / 364.6 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.1479, allocations: 4 kB / 364.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.1479, allocations: 4 kB / 364.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.1482, allocations: 55.86 kB / 364.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.1482, allocations: 8.359 kB / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.1484, allocations: 27.83 kB / 364.7 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.1484, allocations: 8 kB / 364.7 MB, free: 6.984 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.1486, allocations: 134.2 kB / 364.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.1488, allocations: 89.47 kB / 364.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001183/0.1489, allocations: 20.7 kB / 364.9 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1489, allocations: 0 / 364.9 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.149, allocations: 7.953 kB / 364.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.149, allocations: 0 / 364.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005182/0.1495, allocations: 205.6 kB / 365.1 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.1495, allocations: 0 / 365.1 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/0.1498, allocations: 43.97 kB / 365.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.1498, allocations: 0 / 365.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.1498, allocations: 12 kB / 365.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.1498, allocations: 3.938 kB / 365.2 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1498, allocations: 0 / 365.2 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007431/0.1506, allocations: 395.3 kB / 365.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.605e-05/0.1507, allocations: 85.05 kB / 365.7 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.274e-05/0.1507, allocations: 8 kB / 365.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.1509, allocations: 12.28 kB / 365.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.881e-05/0.151, allocations: 8 kB / 365.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.151, allocations: 4 kB / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.214e-05/0.1511, allocations: 109.2 kB / 365.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1511, allocations: 0 / 365.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005574/0.1517, allocations: 31.91 kB / 365.8 MB, free: 5.738 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 (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.0001565/0.1519, allocations: 103.2 kB / 365.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000429/0.1523, allocations: 132.6 kB / 366.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1523, allocations: 0 / 366.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.1525, allocations: 36.03 kB / 366.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006167/0.1531, allocations: 59.89 kB / 366.2 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000701/0.1538, allocations: 466.1 kB / 366.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.1541, allocations: 0.7167 MB / 367.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.89e-05/0.1542, allocations: 5.094 kB / 367.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.1542, allocations: 27.36 kB / 367.4 MB, free: 4.137 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1542, allocations: 0 / 367.4 MB, free: 4.137 MB / 302.1 MB Notification: Performance of Templates: time 0.003625/0.1579, allocations: 1.025 MB / 368.4 MB, free: 3.129 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/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