Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002198/0.002198, allocations: 112.2 kB / 17.17 MB, free: 6.309 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.002844/0.002845, allocations: 196.6 kB / 18.08 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.924/1.924, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00209/0.002091, allocations: 43.09 kB / 300.6 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1603, allocations: 49.44 MB / 350 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.006492/0.1669, allocations: 2.066 MB / 352.1 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.1688, allocations: 0.5687 MB / 352.7 MB, free: 2 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000227/0.169, allocations: 7.938 kB / 352.7 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.1692, allocations: 7.922 kB / 352.7 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003072/0.1696, allocations: 31.78 kB / 352.7 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005088/0.1702, allocations: 59.88 kB / 352.8 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.1705, allocations: 123.6 kB / 352.9 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.1708, allocations: 47.53 kB / 353 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.1709, allocations: 55.78 kB / 353 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.1711, allocations: 55.7 kB / 353.1 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.706e-05/0.1711, allocations: 8 kB / 353.1 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.1713, allocations: 8 kB / 353.1 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1714, allocations: 31.84 kB / 353.1 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.1715, allocations: 63.61 kB / 353.2 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.1718, allocations: 104 kB / 353.3 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.1718, allocations: 0 / 353.3 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1718, allocations: 3.938 kB / 353.3 MB, free: 1.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.1718, allocations: 0 / 353.3 MB, free: 1.406 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001088/0.1729, allocations: 454.9 kB / 353.7 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.173, allocations: 8.031 kB / 353.7 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.1731, allocations: 16.75 kB / 353.7 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.1735, allocations: 216 kB / 354 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.1736, allocations: 16.36 kB / 354 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.508e-05/0.1736, allocations: 20.22 kB / 354 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008726/0.1745, allocations: 250.9 kB / 354.2 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.1746, allocations: 4 kB / 354.2 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.1746, allocations: 4 kB / 354.2 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.1746, allocations: 7.984 kB / 354.3 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.1751, allocations: 91.88 kB / 354.3 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.1763, allocations: 0.5959 MB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000621/0.1769, allocations: 151.9 kB / 355.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.1772, allocations: 70.64 kB / 355.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.184e-05/0.1773, allocations: 8 kB / 355.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/0.1773, allocations: 34.55 kB / 355.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.225e-06/0.1774, allocations: 3.938 kB / 355.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000955/0.1783, allocations: 189.3 kB / 355.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.1785, allocations: 114.9 kB / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.1787, allocations: 154.2 kB / 355.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.1788, allocations: 25.7 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1789, allocations: 120.4 kB / 355.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.993e-05/0.179, allocations: 31.58 kB / 355.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1791, allocations: 37.7 kB / 355.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1793, allocations: 326.8 kB / 356.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.1795, allocations: 39.97 kB / 356.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003215/0.1799, allocations: 132.9 kB / 356.3 MB, free: 14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005609/0.1804, allocations: 189.4 kB / 356.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.69e-05/0.1805, allocations: 4 kB / 356.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007519/0.1812, allocations: 201.4 kB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.1813, allocations: 6.344 kB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.1813, allocations: 7.984 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.1814, allocations: 4 kB / 356.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.1817, allocations: 48.28 kB / 356.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.1817, allocations: 7.938 kB / 356.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.182, allocations: 23.83 kB / 356.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.182, allocations: 12 kB / 356.8 MB, free: 13.45 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.00023/0.1822, allocations: 150.2 kB / 357 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003038/0.1826, allocations: 89.5 kB / 357.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001549/0.1827, allocations: 20.7 kB / 357.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.1828, allocations: 4 kB / 357.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.1828, allocations: 0 / 357.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.1828, allocations: 240 / 357.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005352/0.1833, allocations: 221.4 kB / 357.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1834, allocations: 3.938 kB / 357.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.1837, allocations: 31.98 kB / 357.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/0.1837, allocations: 11.98 kB / 357.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.1838, allocations: 7.984 kB / 357.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1838, allocations: 0 / 357.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1838, allocations: 4 kB / 357.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.1848, allocations: 386.3 kB / 357.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.185, allocations: 101 kB / 357.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.728e-05/0.185, allocations: 4 kB / 357.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.1853, allocations: 11.98 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.285e-05/0.1854, allocations: 4 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1854, allocations: 4 kB / 357.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001747/0.1856, allocations: 120.1 kB / 358 MB, free: 12.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.066e-06/0.1856, allocations: 4 kB / 358 MB, free: 12.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006603/0.1863, allocations: 39.84 kB / 358 MB, free: 12.15 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.0001786/0.1865, allocations: 107.2 kB / 358.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005803/0.1871, allocations: 112.7 kB / 358.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1871, allocations: 0 / 358.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.1873, allocations: 35.97 kB / 358.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009208/0.1883, allocations: 62.09 kB / 358.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.1897, allocations: 0.4898 MB / 358.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/0.1902, allocations: 0.7204 MB / 359.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.329e-05/0.1903, allocations: 19.38 kB / 359.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1903, allocations: 0 / 359.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of Templates: time 0.006213/0.1966, allocations: 1.601 MB / 361.2 MB, free: 8.941 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches