Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001945/0.001945, allocations: 106.3 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002667/0.002667, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.275/2.275, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 47.45 kB / 300.6 MB, free: 6.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1512, allocations: 49.44 MB / 350 MB, free: 4.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.005162/0.1564, allocations: 2.054 MB / 352.1 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.1578, allocations: 0.5298 MB / 352.6 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.158, allocations: 0 / 352.6 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.1582, allocations: 15.86 kB / 352.6 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001889/0.1585, allocations: 15.84 kB / 352.7 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.1589, allocations: 61.88 kB / 352.7 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.1591, allocations: 115.6 kB / 352.8 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.1593, allocations: 48.97 kB / 352.9 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.1594, allocations: 47.72 kB / 352.9 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.1596, allocations: 51.77 kB / 353 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.709e-05/0.1596, allocations: 8 kB / 353 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.255e-05/0.1597, allocations: 8 kB / 353 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.135e-05/0.1597, allocations: 23.92 kB / 353 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.745e-05/0.1598, allocations: 55.66 kB / 353.1 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001847/0.16, allocations: 96.05 kB / 353.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1601, allocations: 0 / 353.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1601, allocations: 0 / 353.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.1601, allocations: 0 / 353.2 MB, free: 1.66 MB / 286.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.0009406/0.161, allocations: 431 kB / 353.6 MB, free: 1.191 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/0.1611, allocations: 8.031 kB / 353.6 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.245e-05/0.1612, allocations: 12.84 kB / 353.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.1616, allocations: 215.9 kB / 353.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.1616, allocations: 16.36 kB / 353.8 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.232e-05/0.1617, allocations: 12.38 kB / 353.8 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008477/0.1626, allocations: 246.8 kB / 354.1 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.1626, allocations: 0 / 354.1 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.1626, allocations: 8 kB / 354.1 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.1627, allocations: 4 kB / 354.1 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004479/0.1631, allocations: 83.88 kB / 354.2 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.1643, allocations: 0.5959 MB / 354.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006053/0.1649, allocations: 147.9 kB / 354.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002642/0.1652, allocations: 78.62 kB / 355 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.1652, allocations: 0 / 355 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.1653, allocations: 42.5 kB / 355 MB, free: 15.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.335e-06/0.1653, allocations: 0 / 355 MB, free: 15.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008967/0.1662, allocations: 189.3 kB / 355.2 MB, free: 15.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.1663, allocations: 110.8 kB / 355.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.1665, allocations: 133.7 kB / 355.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.1666, allocations: 29.7 kB / 355.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.913e-05/0.1667, allocations: 115.8 kB / 355.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.178e-05/0.1667, allocations: 19.84 kB / 355.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.24e-05/0.1668, allocations: 41.7 kB / 355.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.167, allocations: 318.8 kB / 356 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.1672, allocations: 35.97 kB / 356 MB, free: 14.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.1675, allocations: 144.5 kB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/0.1681, allocations: 189.5 kB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.1681, allocations: 0 / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006888/0.1688, allocations: 201 kB / 356.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.1688, allocations: 10.5 kB / 356.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.1689, allocations: 4.375 kB / 356.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.473e-05/0.1689, allocations: 4 kB / 356.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.1692, allocations: 48.38 kB / 356.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.1692, allocations: 8 kB / 356.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.1694, allocations: 27.77 kB / 356.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.1695, allocations: 8 kB / 356.6 MB, free: 13.79 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.0001861/0.1697, allocations: 146.1 kB / 356.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002635/0.17, allocations: 89.53 kB / 356.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.1701, allocations: 16.7 kB / 356.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.1701, allocations: 4 kB / 356.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1701, allocations: 0 / 356.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1702, allocations: 4 kB / 356.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004795/0.1706, allocations: 217.4 kB / 357.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.1707, allocations: 0 / 357.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.171, allocations: 35.97 kB / 357.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.171, allocations: 0 / 357.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.1711, allocations: 4 kB / 357.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1711, allocations: 4 kB / 357.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.1711, allocations: 3.938 kB / 357.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008955/0.172, allocations: 375.4 kB / 357.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.854e-05/0.1721, allocations: 96.97 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.1721, allocations: 0 / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002717/0.1724, allocations: 8 kB / 357.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.1725, allocations: 8.281 kB / 357.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.1725, allocations: 8 kB / 357.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001042/0.1726, allocations: 99.27 kB / 357.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1727, allocations: 0 / 357.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006401/0.1733, allocations: 27.91 kB / 357.8 MB, free: 12.56 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.0001767/0.1735, allocations: 111.2 kB / 357.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005649/0.1741, allocations: 120.1 kB / 358 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1741, allocations: 0 / 358 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.1743, allocations: 27.98 kB / 358 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008914/0.1752, allocations: 67.25 kB / 358.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.1765, allocations: 465.9 kB / 358.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1769, allocations: 0.7242 MB / 359.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.123e-05/0.177, allocations: 15.44 kB / 359.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.177, allocations: 0 / 359.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Templates: time 0.005568/0.1826, allocations: 1.504 MB / 360.8 MB, free: 9.477 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches