Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001211/0.001211, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.779/1.779, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 48.45 kB / 300.7 MB, free: 5.746 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1754, allocations: 49.44 MB / 350.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.005287/0.1808, allocations: 1.547 MB / 351.7 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.1822, allocations: 490.7 kB / 352.2 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.1823, allocations: 3.938 kB / 352.2 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.506e-05/0.1825, allocations: 3.938 kB / 352.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.1826, allocations: 15.92 kB / 352.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000336/0.183, allocations: 45.08 kB / 352.3 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.1831, allocations: 55.78 kB / 352.3 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.1833, allocations: 24.17 kB / 352.3 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.277e-05/0.1834, allocations: 19.88 kB / 352.4 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.419e-05/0.1834, allocations: 19.86 kB / 352.4 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.1835, allocations: 4 kB / 352.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.746e-05/0.1835, allocations: 4 kB / 352.4 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.1836, allocations: 19.91 kB / 352.4 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.1837, allocations: 19.81 kB / 352.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.1838, allocations: 63.8 kB / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1839, allocations: 0 / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1839, allocations: 0 / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.1839, allocations: 0 / 352.5 MB, free: 1.945 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006108/0.1845, allocations: 379.3 kB / 352.9 MB, free: 1.527 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.1845, allocations: 12.03 kB / 352.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.816e-05/0.1846, allocations: 38.73 kB / 352.9 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/0.1847, allocations: 8.844 kB / 352.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.185, allocations: 196.1 kB / 353.1 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.185, allocations: 12.36 kB / 353.1 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.185, allocations: 4.375 kB / 353.1 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003489/0.1854, allocations: 101 kB / 353.2 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1854, allocations: 0 / 353.2 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.1854, allocations: 0 / 353.2 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.1854, allocations: 7.984 kB / 353.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.1856, allocations: 19.98 kB / 353.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005577/0.1861, allocations: 261.7 kB / 353.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.1862, allocations: 45.2 kB / 353.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.828e-05/0.1863, allocations: 17.78 kB / 353.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.1864, allocations: 0 / 353.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.241e-05/0.1864, allocations: 42.48 kB / 353.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.342e-06/0.1864, allocations: 0 / 353.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0004036/0.1869, allocations: 65.75 kB / 353.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/0.187, allocations: 89.12 kB / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.1872, allocations: 133.8 kB / 353.9 MB, free: 316 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.1873, allocations: 25.7 kB / 353.9 MB, free: 284 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.1874, allocations: 104 kB / 354 MB, free: 176 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.1875, allocations: 3.984 kB / 354 MB, free: 172 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.1876, allocations: 21.56 kB / 354 MB, free: 144 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002908/0.1879, allocations: 318.8 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.569e-05/0.188, allocations: 11.98 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.857e-05/0.188, allocations: 21.72 kB / 354.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001123/0.1881, allocations: 33.64 kB / 354.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.1882, allocations: 0 / 354.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001665/0.1883, allocations: 57.73 kB / 354.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.89e-05/0.1884, allocations: 4 kB / 354.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.1884, allocations: 0 / 354.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.645e-05/0.1884, allocations: 4 kB / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.1886, allocations: 7.938 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1886, allocations: 0 / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.295e-05/0.1887, allocations: 3.984 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.1887, allocations: 4 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0002083/0.1889, allocations: 121.8 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.189, allocations: 37.61 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.753e-05/0.1891, allocations: 11.86 kB / 354.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1891, allocations: 4 kB / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/0.1891, allocations: 4 kB / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1892, allocations: 0 / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.1895, allocations: 165.6 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.1895, allocations: 4 kB / 354.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.118e-05/0.1895, allocations: 7.984 kB / 354.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.1896, allocations: 0 / 354.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.1896, allocations: 8.031 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.1896, allocations: 3.938 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/0.1896, allocations: 4 kB / 354.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/0.1899, allocations: 156.3 kB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.1901, allocations: 93 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.1901, allocations: 4 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.55e-05/0.1902, allocations: 8.016 kB / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.118e-05/0.1903, allocations: 0 / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.1903, allocations: 4 kB / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.1904, allocations: 110 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1904, allocations: 3.938 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002904/0.1907, allocations: 4 kB / 355.2 MB, free: 14.81 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0009444/0.1917, allocations: 0.7014 MB / 355.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002179/0.1919, allocations: 23.98 kB / 356 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1919, allocations: 3.938 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.744e-05/0.192, allocations: 8 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007289/0.1927, allocations: 20.17 kB / 356 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.1956, allocations: 1.327 MB / 357.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006123/0.1963, allocations: 0.6885 MB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.404e-05/0.1963, allocations: 11.97 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.219e-05/0.1964, allocations: 15.38 kB / 358 MB, free: 11.87 MB / 302.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1964, allocations: 0 / 358 MB, free: 11.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05504/0.2515, allocations: 1.581 MB / 359.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.72, allocations: 3.984 kB / 359.6 MB, free: 10.39 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches