Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002865/0.002871, allocations: 187.3 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.236/4.236, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.001954/0.001954, allocations: 98.8 kB / 270.9 MB, free: 13.36 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.2389/0.2389, allocations: 12.59 MB / 331.8 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009582/0.0009585, allocations: 12.44 kB / 392 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1896, allocations: 50.37 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.003755/0.1935, allocations: 1.245 MB / 443.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.1953, allocations: 0.496 MB / 444.1 MB, free: 9.859 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.1955, allocations: 0 / 444.1 MB, free: 9.859 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.909e-05/0.1956, allocations: 0 / 444.1 MB, free: 9.859 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001853/0.1958, allocations: 15.92 kB / 444.1 MB, free: 9.844 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005279/0.1963, allocations: 47.83 kB / 444.1 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.1965, allocations: 31.95 kB / 444.2 MB, free: 9.766 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.1967, allocations: 12.17 kB / 444.2 MB, free: 9.754 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.1969, allocations: 19.92 kB / 444.2 MB, free: 9.734 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.841e-05/0.197, allocations: 23.84 kB / 444.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.197, allocations: 0 / 444.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.201e-05/0.1971, allocations: 0 / 444.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.625e-05/0.1972, allocations: 11.94 kB / 444.2 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.765e-05/0.1972, allocations: 41.64 kB / 444.3 MB, free: 9.652 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.1974, allocations: 39.86 kB / 444.3 MB, free: 9.613 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.892e-05/0.2015, allocations: 4 kB / 444.3 MB, free: 9.609 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.272e-06/0.2016, allocations: 0 / 444.3 MB, free: 9.609 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.2016, allocations: 0 / 444.3 MB, free: 9.609 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008198/0.2025, allocations: 367.8 kB / 444.7 MB, free: 9.203 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/0.2026, allocations: 8.031 kB / 444.7 MB, free: 9.195 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.782e-05/0.2027, allocations: 7.906 kB / 444.7 MB, free: 9.188 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.203, allocations: 202.8 kB / 444.9 MB, free: 8.949 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.203, allocations: 0 / 444.9 MB, free: 8.949 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.2031, allocations: 4 kB / 444.9 MB, free: 8.945 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004704/0.2035, allocations: 101 kB / 445 MB, free: 8.828 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.2036, allocations: 0 / 445 MB, free: 8.828 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.2036, allocations: 8 kB / 445 MB, free: 8.82 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.2036, allocations: 4 kB / 445 MB, free: 8.816 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.2039, allocations: 19.92 kB / 445 MB, free: 8.797 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.2044, allocations: 261.8 kB / 445.3 MB, free: 8.488 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.2046, allocations: 49.16 kB / 445.3 MB, free: 8.422 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.261e-05/0.2047, allocations: 0 / 445.3 MB, free: 8.422 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.2048, allocations: 42.55 kB / 445.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 3.457e-06/0.2048, allocations: 0 / 445.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0005293/0.2053, allocations: 77.62 kB / 445.5 MB, free: 8.289 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/0.2054, allocations: 81.09 kB / 445.5 MB, free: 8.191 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002097/0.2057, allocations: 141.6 kB / 445.7 MB, free: 8.043 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.2057, allocations: 29.7 kB / 445.7 MB, free: 8.008 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.909e-05/0.2058, allocations: 154.6 kB / 445.9 MB, free: 7.855 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.2058, allocations: 7.844 kB / 445.9 MB, free: 7.848 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-06/0.2059, allocations: 160 / 445.9 MB, free: 7.848 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.277e-05/0.206, allocations: 322.8 kB / 446.2 MB, free: 7.523 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2061, allocations: 8 kB / 446.2 MB, free: 7.516 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.2062, allocations: 25.64 kB / 446.2 MB, free: 7.484 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.2064, allocations: 12.06 kB / 446.2 MB, free: 7.473 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2064, allocations: 4 kB / 446.2 MB, free: 7.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002964/0.2067, allocations: 53.69 kB / 446.3 MB, free: 7.41 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.2068, allocations: 7.984 kB / 446.3 MB, free: 7.402 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/0.2068, allocations: 0 / 446.3 MB, free: 7.402 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.2068, allocations: 0 / 446.3 MB, free: 7.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.207, allocations: 11.94 kB / 446.3 MB, free: 7.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.207, allocations: 0 / 446.3 MB, free: 7.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2072, allocations: 12.02 kB / 446.3 MB, free: 7.379 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.2072, allocations: 0 / 446.3 MB, free: 7.379 MB / 282.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.2074, allocations: 121.6 kB / 446.4 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.2075, allocations: 41.55 kB / 446.5 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.939e-05/0.2076, allocations: 19.81 kB / 446.5 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.2076, allocations: 0 / 446.5 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.2076, allocations: 0 / 446.5 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.2077, allocations: 0 / 446.5 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003069/0.208, allocations: 181.6 kB / 446.7 MB, free: 6.957 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.208, allocations: 0 / 446.7 MB, free: 6.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001478/0.2082, allocations: 4 kB / 446.7 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.2082, allocations: 0 / 446.7 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.2082, allocations: 4 kB / 446.7 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.377e-06/0.2083, allocations: 7.938 kB / 446.7 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.2083, allocations: 3.984 kB / 446.7 MB, free: 6.938 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003704/0.2087, allocations: 178 kB / 446.9 MB, free: 6.738 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.2088, allocations: 92.94 kB / 446.9 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.2089, allocations: 0 / 446.9 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.2091, allocations: 4 kB / 447 MB, free: 6.625 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.422e-05/0.2091, allocations: 3.984 kB / 447 MB, free: 6.621 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.2092, allocations: 0 / 447 MB, free: 6.621 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000144/0.2093, allocations: 119.2 kB / 447.1 MB, free: 6.504 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.2094, allocations: 0 / 447.1 MB, free: 6.504 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005836/0.21, allocations: 4 kB / 447.1 MB, free: 6.5 MB / 282.7 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 (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.000157/0.2102, allocations: 95.23 kB / 447.2 MB, free: 6.398 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003469/0.2105, allocations: 27.92 kB / 447.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.2106, allocations: 128 / 447.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.843e-05/0.2107, allocations: 12 kB / 447.2 MB, free: 6.359 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000596/0.2113, allocations: 23.77 kB / 447.2 MB, free: 6.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006923/0.212, allocations: 215.5 kB / 447.4 MB, free: 6.094 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.2123, allocations: 0.6926 MB / 448.1 MB, free: 5.375 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.023e-05/0.2124, allocations: 7.438 kB / 448.1 MB, free: 5.367 MB / 282.7 MB Notification: Performance of SimCode: time 2.023e-06/0.2124, allocations: 0 / 448.1 MB, free: 5.367 MB / 282.7 MB Notification: Performance of Templates: time 0.004393/0.2168, allocations: 0.7491 MB / 448.9 MB, free: 4.625 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches