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.0016/0.0016, allocations: 104.9 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001918/0.001918, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.3 MB, free: 9.137 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 59 kB / 306.2 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1279, allocations: 50.53 MB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.006114/0.1341, allocations: 2.066 MB / 358.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.1359, allocations: 0.5611 MB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/0.1361, allocations: 7.938 kB / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.1364, allocations: 7.922 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002537/0.1367, allocations: 23.84 kB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.1371, allocations: 51.89 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.1374, allocations: 119.5 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.1377, allocations: 64.88 kB / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.1378, allocations: 39.86 kB / 359.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.1379, allocations: 59.62 kB / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.34e-05/0.138, allocations: 8 kB / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.747e-05/0.138, allocations: 8 kB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.488e-05/0.1381, allocations: 23.92 kB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.912e-05/0.1382, allocations: 51.67 kB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.1384, allocations: 119.8 kB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1384, allocations: 0 / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.849e-06/0.1384, allocations: 0 / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1384, allocations: 3.938 kB / 360 MB, free: 11.08 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.0008907/0.1393, allocations: 435 kB / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.1394, allocations: 8.031 kB / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.664e-05/0.1395, allocations: 12.84 kB / 360.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003214/0.1398, allocations: 215.8 kB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.1398, allocations: 8.375 kB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.201e-05/0.1399, allocations: 12.38 kB / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006217/0.1405, allocations: 250.9 kB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.1405, allocations: 0 / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.1406, allocations: 8 kB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1406, allocations: 4 kB / 360.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.1409, allocations: 86.41 kB / 361 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007659/0.1416, allocations: 0.6037 MB / 361.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/0.142, allocations: 143.8 kB / 361.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.1422, allocations: 90.61 kB / 361.8 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.1422, allocations: 0 / 361.8 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.1423, allocations: 34.56 kB / 361.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.754e-06/0.1423, allocations: 0 / 361.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005568/0.1428, allocations: 185.5 kB / 362 MB, free: 8.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.746e-05/0.1429, allocations: 118.9 kB / 362.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.1431, allocations: 130.2 kB / 362.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.1431, allocations: 25.7 kB / 362.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.1432, allocations: 119.7 kB / 362.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/0.1433, allocations: 23.8 kB / 362.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.998e-05/0.1433, allocations: 33.7 kB / 362.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1435, allocations: 322.8 kB / 362.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1436, allocations: 35.97 kB / 362.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.1438, allocations: 144.9 kB / 363 MB, free: 7.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.1441, allocations: 189.4 kB / 363.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1441, allocations: 0 / 363.2 MB, free: 7.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003859/0.1445, allocations: 197.3 kB / 363.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1445, allocations: 8 kB / 363.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.1446, allocations: 4 kB / 363.4 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.1446, allocations: 4 kB / 363.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.1448, allocations: 55.84 kB / 363.4 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.1448, allocations: 4 kB / 363.4 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.1449, allocations: 19.83 kB / 363.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.145, allocations: 12 kB / 363.5 MB, free: 7.203 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 0.000123/0.1451, allocations: 137.9 kB / 363.6 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001784/0.1453, allocations: 89.91 kB / 363.7 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001783/0.1455, allocations: 16.7 kB / 363.7 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1455, allocations: 8.094 kB / 363.7 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1455, allocations: 3.938 kB / 363.7 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1455, allocations: 0 / 363.7 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.1458, allocations: 209.5 kB / 363.9 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1458, allocations: 0 / 363.9 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.146, allocations: 43.92 kB / 364 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.146, allocations: 0 / 364 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.146, allocations: 3.984 kB / 364 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.146, allocations: 4 kB / 364 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.146, allocations: 0 / 364 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005889/0.1466, allocations: 383.3 kB / 364.3 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.1467, allocations: 92.97 kB / 364.4 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.1467, allocations: 4 kB / 364.4 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.1469, allocations: 4 kB / 364.4 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.609e-05/0.1469, allocations: 7.984 kB / 364.5 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.147, allocations: 4 kB / 364.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.23e-05/0.147, allocations: 101.8 kB / 364.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1471, allocations: 0 / 364.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003595/0.1474, allocations: 31.97 kB / 364.6 MB, free: 5.98 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 0.0001365/0.1476, allocations: 103.8 kB / 364.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000348/0.1479, allocations: 120.6 kB / 364.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1479, allocations: 0 / 364.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.148, allocations: 31.98 kB / 364.8 MB, free: 5.719 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000508/0.1486, allocations: 55.94 kB / 364.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007909/0.1494, allocations: 443.6 kB / 365.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.1497, allocations: 0.7165 MB / 366 MB, free: 4.449 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.31e-05/0.1498, allocations: 9.078 kB / 366 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.1498, allocations: 15.44 kB / 366.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1498, allocations: 0 / 366.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of Templates: time 0.004236/0.1541, allocations: 1.085 MB / 367.1 MB, free: 3.355 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