Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01495/0.01496, allocations: 188.6 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.316/4.316, allocations: 205.4 MB / 222.6 MB, free: 13.85 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.001848/0.001848, allocations: 98.8 kB / 270.9 MB, free: 13.37 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.2133/0.2133, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009439/0.0009443, allocations: 14.59 kB / 392 MB, free: 54.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1899, allocations: 50.38 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004543/0.1945, allocations: 1.531 MB / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003704/0.1983, allocations: 0.9719 MB / 444.8 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002598/0.1986, allocations: 4 kB / 444.9 MB, free: 9.09 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004818/0.1991, allocations: 51.8 kB / 444.9 MB, free: 9.039 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004909/0.1997, allocations: 75.78 kB / 445 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.2014, allocations: 192.1 kB / 445.2 MB, free: 8.781 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005589/0.202, allocations: 111.8 kB / 445.3 MB, free: 8.672 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.2023, allocations: 25.53 kB / 445.3 MB, free: 8.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.2026, allocations: 67.69 kB / 445.4 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.2028, allocations: 59.7 kB / 445.4 MB, free: 8.52 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.812e-05/0.2029, allocations: 0 / 445.4 MB, free: 8.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003184/0.2032, allocations: 43.97 kB / 445.5 MB, free: 8.477 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.2034, allocations: 43.83 kB / 445.5 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.822e-05/0.2035, allocations: 61.56 kB / 445.6 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004552/0.204, allocations: 160.5 kB / 445.7 MB, free: 8.211 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.204, allocations: 0 / 445.7 MB, free: 8.211 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.531e-06/0.204, allocations: 4 kB / 445.7 MB, free: 8.207 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.204, allocations: 3.938 kB / 445.7 MB, free: 8.203 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001271/0.2053, allocations: 0.4922 MB / 446.2 MB, free: 7.656 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.491e-05/0.2054, allocations: 8.031 kB / 446.2 MB, free: 7.648 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.2055, allocations: 23.72 kB / 446.3 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006893/0.2063, allocations: 282.4 kB / 446.5 MB, free: 7.305 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.2063, allocations: 11.94 kB / 446.5 MB, free: 7.293 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.2064, allocations: 8 kB / 446.6 MB, free: 7.285 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006298/0.207, allocations: 151.6 kB / 446.7 MB, free: 7.109 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.2071, allocations: 0 / 446.7 MB, free: 7.109 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.2071, allocations: 12 kB / 446.7 MB, free: 7.098 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.2072, allocations: 0 / 446.7 MB, free: 7.098 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.2074, allocations: 31.92 kB / 446.7 MB, free: 7.066 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009968/0.2085, allocations: 382.4 kB / 447.1 MB, free: 6.637 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.209, allocations: 127.8 kB / 447.2 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.2091, allocations: 0 / 447.2 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003568/0.2095, allocations: 87.5 kB / 447.3 MB, free: 6.387 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 3.797e-06/0.2095, allocations: 0 / 447.3 MB, free: 6.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0007985/0.2103, allocations: 145.3 kB / 447.5 MB, free: 6.238 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.2104, allocations: 162.2 kB / 447.6 MB, free: 6.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006594/0.2111, allocations: 330.6 kB / 448 MB, free: 5.711 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.412e-05/0.2112, allocations: 29.7 kB / 448 MB, free: 5.676 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.2113, allocations: 186.8 kB / 448.2 MB, free: 5.492 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.413e-05/0.2114, allocations: 19.83 kB / 448.2 MB, free: 5.473 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.2115, allocations: 0 / 448.2 MB, free: 5.473 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.717e-05/0.2116, allocations: 322.8 kB / 448.5 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.2117, allocations: 23.98 kB / 448.5 MB, free: 5.125 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.212, allocations: 78.86 kB / 448.6 MB, free: 5.023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000198/0.2122, allocations: 39.86 kB / 448.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/0.2122, allocations: 0 / 448.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005041/0.2128, allocations: 109.5 kB / 448.7 MB, free: 4.871 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.2128, allocations: 4 kB / 448.7 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.2129, allocations: 8.062 kB / 448.8 MB, free: 4.859 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.695e-05/0.2129, allocations: 4 kB / 448.8 MB, free: 4.855 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002352/0.2131, allocations: 15.98 kB / 448.8 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.2132, allocations: 4 kB / 448.8 MB, free: 4.836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/0.2134, allocations: 11.94 kB / 448.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.2135, allocations: 4 kB / 448.8 MB, free: 4.82 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0003225/0.2138, allocations: 157.5 kB / 448.9 MB, free: 4.656 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.2141, allocations: 69.44 kB / 449 MB, free: 4.582 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.2142, allocations: 25.7 kB / 449 MB, free: 4.562 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.2143, allocations: 4 kB / 449 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.2143, allocations: 0 / 449 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.2143, allocations: 0 / 449 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006899/0.215, allocations: 241.5 kB / 449.3 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.2151, allocations: 0 / 449.3 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000348/0.2155, allocations: 20.23 kB / 449.3 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.614e-05/0.2155, allocations: 0 / 449.3 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.305e-05/0.2156, allocations: 11.94 kB / 449.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.245e-05/0.2157, allocations: 0 / 449.3 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.2157, allocations: 4.031 kB / 449.3 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.2168, allocations: 189.9 kB / 449.5 MB, free: 4.016 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003257/0.2171, allocations: 116.8 kB / 449.6 MB, free: 3.883 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.838e-05/0.2172, allocations: 0 / 449.6 MB, free: 3.883 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.2174, allocations: 8 kB / 449.6 MB, free: 3.875 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.2176, allocations: 15.94 kB / 449.6 MB, free: 3.859 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.159e-05/0.2176, allocations: 4 kB / 449.6 MB, free: 3.855 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005297/0.2182, allocations: 245.9 kB / 449.9 MB, free: 3.613 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.91e-07/0.2182, allocations: 0 / 449.9 MB, free: 3.613 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007027/0.219, allocations: 32 kB / 449.9 MB, free: 3.582 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00205/0.221, allocations: 430.8 kB / 450.3 MB, free: 3.156 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005858/0.2217, allocations: 79.84 kB / 450.4 MB, free: 3.078 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.2218, allocations: 0 / 450.4 MB, free: 3.078 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.222, allocations: 27.98 kB / 450.4 MB, free: 3.051 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000853/0.2228, allocations: 52.3 kB / 450.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.2243, allocations: 422.4 kB / 450.9 MB, free: 2.559 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.2248, allocations: 0.7556 MB / 451.7 MB, free: 1.777 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.225, allocations: 19.44 kB / 451.7 MB, free: 1.758 MB / 282.7 MB Notification: Performance of SimCode: time 2.134e-06/0.225, allocations: 0 / 451.7 MB, free: 1.758 MB / 282.7 MB Notification: Performance of Templates: time 0.02493/0.2499, allocations: 2.879 MB / 454.6 MB, free: 14.88 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches