Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003302/0.003301, allocations: 185.5 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.358/4.358, allocations: 205.4 MB / 222.6 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.006214/0.006214, allocations: 98.84 kB / 270.9 MB, free: 13.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2168/0.2168, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009724/0.0009728, allocations: 12.34 kB / 392 MB, free: 54.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.171, allocations: 50.38 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004415/0.1756, allocations: 1.641 MB / 444 MB, free: 9.973 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.1775, allocations: 0.5155 MB / 444.5 MB, free: 9.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002753/0.1778, allocations: 4 kB / 444.5 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.131e-05/0.1779, allocations: 7.922 kB / 444.5 MB, free: 9.438 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.1782, allocations: 31.88 kB / 444.5 MB, free: 9.406 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006603/0.1789, allocations: 49.95 kB / 444.6 MB, free: 9.359 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003252/0.1792, allocations: 79.84 kB / 444.7 MB, free: 9.281 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002451/0.1795, allocations: 52.73 kB / 444.7 MB, free: 9.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.1797, allocations: 39.8 kB / 444.8 MB, free: 9.191 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.1798, allocations: 43.77 kB / 444.8 MB, free: 9.148 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.504e-05/0.1799, allocations: 8 kB / 444.8 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.654e-05/0.1799, allocations: 4 kB / 444.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.3e-05/0.18, allocations: 19.92 kB / 444.8 MB, free: 9.117 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.984e-05/0.1801, allocations: 45.64 kB / 444.9 MB, free: 9.066 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.1803, allocations: 84.61 kB / 445 MB, free: 8.984 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1804, allocations: 0 / 445 MB, free: 8.984 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1804, allocations: 0 / 445 MB, free: 8.984 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1804, allocations: 0 / 445 MB, free: 8.984 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001002/0.1814, allocations: 411 kB / 445.4 MB, free: 8.535 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/0.1815, allocations: 8.031 kB / 445.4 MB, free: 8.527 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.469e-05/0.1816, allocations: 19.81 kB / 445.4 MB, free: 8.508 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004936/0.1821, allocations: 202.8 kB / 445.6 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.1822, allocations: 8 kB / 445.6 MB, free: 8.262 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-05/0.1823, allocations: 12 kB / 445.6 MB, free: 8.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.1833, allocations: 234.5 kB / 445.8 MB, free: 7.996 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.1834, allocations: 0 / 445.8 MB, free: 7.996 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.1835, allocations: 8 kB / 445.8 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.1835, allocations: 4 kB / 445.8 MB, free: 7.984 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006498/0.1842, allocations: 95.88 kB / 445.9 MB, free: 7.891 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.1854, allocations: 0.5998 MB / 446.5 MB, free: 7.215 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006299/0.186, allocations: 148.1 kB / 446.7 MB, free: 7.043 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.067e-05/0.1861, allocations: 4 kB / 446.7 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.1862, allocations: 34.56 kB / 446.7 MB, free: 6.996 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 6.442e-06/0.1862, allocations: 4 kB / 446.7 MB, free: 6.992 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.001218/0.1875, allocations: 185.5 kB / 446.9 MB, free: 6.805 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.1876, allocations: 123 kB / 447 MB, free: 6.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.1878, allocations: 126.2 kB / 447.2 MB, free: 6.527 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.1879, allocations: 33.7 kB / 447.2 MB, free: 6.488 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.395e-05/0.188, allocations: 182.3 kB / 447.4 MB, free: 6.309 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.523e-05/0.1881, allocations: 31.64 kB / 447.4 MB, free: 6.277 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.277e-05/0.1881, allocations: 0 / 447.4 MB, free: 6.277 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1882, allocations: 322.8 kB / 447.7 MB, free: 5.953 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003132/0.1886, allocations: 39.97 kB / 447.7 MB, free: 5.914 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/0.189, allocations: 136.8 kB / 447.9 MB, free: 5.734 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.1893, allocations: 67.91 kB / 447.9 MB, free: 5.668 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.1894, allocations: 0 / 447.9 MB, free: 5.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000925/0.1903, allocations: 193.2 kB / 448.1 MB, free: 5.473 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.1904, allocations: 4 kB / 448.1 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.1904, allocations: 4 kB / 448.1 MB, free: 5.465 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.659e-05/0.1905, allocations: 4 kB / 448.1 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/0.191, allocations: 48.34 kB / 448.2 MB, free: 5.414 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.915e-05/0.191, allocations: 8 kB / 448.2 MB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002672/0.1913, allocations: 23.84 kB / 448.2 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.1914, allocations: 11.98 kB / 448.2 MB, free: 5.371 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0002057/0.1916, allocations: 129.7 kB / 448.4 MB, free: 5.234 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000347/0.192, allocations: 85.53 kB / 448.4 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.664e-05/0.1921, allocations: 12.72 kB / 448.5 MB, free: 5.133 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.1921, allocations: 4 kB / 448.5 MB, free: 5.129 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.1921, allocations: 4 kB / 448.5 MB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.1921, allocations: 0 / 448.5 MB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005419/0.1927, allocations: 209.5 kB / 448.7 MB, free: 4.871 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.1927, allocations: 4 kB / 448.7 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004958/0.1932, allocations: 39.91 kB / 448.7 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/0.1933, allocations: 0 / 448.7 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.069e-05/0.1933, allocations: 8 kB / 448.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.1934, allocations: 0 / 448.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.1934, allocations: 4 kB / 448.7 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.1946, allocations: 417.4 kB / 449.1 MB, free: 4.379 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.802e-05/0.1948, allocations: 89.03 kB / 449.2 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.985e-05/0.1949, allocations: 8 kB / 449.2 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.1952, allocations: 4 kB / 449.2 MB, free: 4.262 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.503e-05/0.1953, allocations: 7.984 kB / 449.2 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.1954, allocations: 12.16 kB / 449.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001264/0.1955, allocations: 107.1 kB / 449.4 MB, free: 4.137 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.71e-07/0.1955, allocations: 3.938 kB / 449.4 MB, free: 4.133 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008212/0.1964, allocations: 24 kB / 449.4 MB, free: 4.109 MB / 282.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 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.00019/0.1966, allocations: 95.25 kB / 449.5 MB, free: 4.004 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000881/0.1975, allocations: 132 kB / 449.6 MB, free: 3.875 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.1976, allocations: 0 / 449.6 MB, free: 3.875 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.1979, allocations: 36.83 kB / 449.6 MB, free: 3.84 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008735/0.1988, allocations: 56.14 kB / 449.7 MB, free: 3.785 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.2004, allocations: 491.1 kB / 450.2 MB, free: 3.266 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.2007, allocations: 0.7165 MB / 450.9 MB, free: 2.523 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.2008, allocations: 19.44 kB / 450.9 MB, free: 2.504 MB / 282.7 MB Notification: Performance of SimCode: time 2.204e-06/0.2009, allocations: 0 / 450.9 MB, free: 2.504 MB / 282.7 MB Notification: Performance of Templates: time 0.00686/0.2077, allocations: 1.44 MB / 452.4 MB, free: 1.066 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches