Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003081/0.003087, allocations: 183.8 kB / 16.44 MB, free: 5.711 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.864/3.864, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.001836/0.001835, allocations: 97.83 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2839/0.2839, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009761/0.0009766, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.22, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample): time 0.003147/0.2232, allocations: 1.266 MB / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.225, allocations: 0.5045 MB / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.2252, allocations: 0 / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.564e-05/0.2253, allocations: 3.938 kB / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.2255, allocations: 15.97 kB / 444.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006007/0.2261, allocations: 39.84 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.2263, allocations: 31.95 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.2265, allocations: 20.17 kB / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.2267, allocations: 15.88 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.214e-05/0.2268, allocations: 19.91 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.2268, allocations: 0 / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.173e-05/0.2269, allocations: 4 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.395e-05/0.2269, allocations: 15.92 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.911e-05/0.227, allocations: 37.64 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.2271, allocations: 31.94 kB / 444.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2271, allocations: 4 kB / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.2272, allocations: 0 / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2272, allocations: 0 / 444.4 MB, free: 14.44 MB / 298.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.0007123/0.2279, allocations: 371.2 kB / 444.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.584e-05/0.228, allocations: 12.03 kB / 444.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.761e-05/0.2281, allocations: 7.906 kB / 444.7 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.2284, allocations: 194.8 kB / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.2285, allocations: 4 kB / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.2285, allocations: 4 kB / 444.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.229, allocations: 113.9 kB / 445 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.2291, allocations: 3.938 kB / 445 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.2291, allocations: 4 kB / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.2291, allocations: 0 / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.2294, allocations: 31.97 kB / 445.1 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.23, allocations: 278.4 kB / 445.4 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002522/0.2304, allocations: 75.78 kB / 445.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.474e-05/0.2304, allocations: 4 kB / 445.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.2305, allocations: 30.56 kB / 445.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 5.08e-06/0.2305, allocations: 0 / 445.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005617/0.2311, allocations: 85.67 kB / 445.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.92e-05/0.2312, allocations: 110.8 kB / 445.7 MB, free: 12.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.2314, allocations: 149.5 kB / 445.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.2315, allocations: 30.08 kB / 445.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.017e-05/0.2316, allocations: 162.5 kB / 446 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.707e-05/0.2316, allocations: 3.984 kB / 446 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-06/0.2316, allocations: 0 / 446 MB, free: 12.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.864e-05/0.2317, allocations: 314.8 kB / 446.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.2319, allocations: 15.92 kB / 446.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.232, allocations: 43.36 kB / 446.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.2321, allocations: 12 kB / 446.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2322, allocations: 0 / 446.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003245/0.2325, allocations: 73.64 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.2325, allocations: 12.03 kB / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.2326, allocations: 0 / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.2326, allocations: 0 / 446.5 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.2328, allocations: 11.98 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.2328, allocations: 4 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.233, allocations: 7.953 kB / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.233, allocations: 0 / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.0001451/0.2331, allocations: 121.6 kB / 446.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.2333, allocations: 57.53 kB / 446.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.758e-05/0.2334, allocations: 15.83 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.2334, allocations: 0 / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2335, allocations: 0 / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.2335, allocations: 7.984 kB / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003305/0.2338, allocations: 173.5 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.2338, allocations: 4 kB / 446.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.234, allocations: 8 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.234, allocations: 3.984 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.2341, allocations: 4.062 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.929e-06/0.2341, allocations: 11.94 kB / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.2341, allocations: 0 / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003719/0.2345, allocations: 200.6 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.753e-05/0.2346, allocations: 93 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.2347, allocations: 0 / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.2349, allocations: 4 kB / 447.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.99e-05/0.2349, allocations: 7.953 kB / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.235, allocations: 4.125 kB / 447.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001336/0.2351, allocations: 107.3 kB / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.2351, allocations: 0 / 447.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005653/0.2357, allocations: 12 kB / 447.3 MB, free: 11.1 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001652/0.2359, allocations: 99.17 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003921/0.2363, allocations: 31.98 kB / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.2364, allocations: 3.938 kB / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.993e-05/0.2365, allocations: 20.19 kB / 447.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006212/0.2371, allocations: 33.14 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007721/0.2379, allocations: 228.4 kB / 447.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.2382, allocations: 0.7004 MB / 448.4 MB, free: 9.922 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.769e-05/0.2383, allocations: 11.44 kB / 448.4 MB, free: 9.91 MB / 298.7 MB Notification: Performance of SimCode: time 1.633e-06/0.2383, allocations: 0 / 448.4 MB, free: 9.91 MB / 298.7 MB Notification: Performance of Templates: time 0.004133/0.2425, allocations: 0.827 MB / 449.2 MB, free: 9.086 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches