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.001253/0.001253, allocations: 175.2 kB / 16.76 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.000883/0.0008831, allocations: 89.17 kB / 271.3 MB, free: 8.238 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.0954/0.0954, allocations: 12.59 MB / 332.1 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006419/0.0006419, allocations: 24 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1289, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample): time 0.001916/0.1309, allocations: 1.27 MB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009241/0.1319, allocations: 0.4883 MB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.132, allocations: 11.94 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.849e-05/0.132, allocations: 0 / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.1322, allocations: 7.938 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.1325, allocations: 43.83 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.1326, allocations: 39.86 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.1327, allocations: 12.19 kB / 444.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.757e-05/0.1328, allocations: 27.91 kB / 444.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.861e-05/0.1329, allocations: 19.86 kB / 444.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.912e-05/0.1329, allocations: 4 kB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.133, allocations: 3.938 kB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.189e-05/0.133, allocations: 11.94 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.075e-05/0.1331, allocations: 45.56 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.228e-05/0.1331, allocations: 31.94 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1332, allocations: 0 / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1332, allocations: 0 / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.1332, allocations: 0 / 445 MB, free: 14.07 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.0004375/0.1336, allocations: 379.4 kB / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1337, allocations: 8.031 kB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.051e-05/0.1337, allocations: 8.844 kB / 445.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001807/0.1339, allocations: 204.1 kB / 445.6 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.1339, allocations: 384 / 445.6 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.134, allocations: 12.31 kB / 445.6 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.1343, allocations: 118 kB / 445.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1343, allocations: 0 / 445.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.1343, allocations: 0 / 445.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1343, allocations: 4 kB / 445.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.1345, allocations: 27.92 kB / 445.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003164/0.1348, allocations: 278.5 kB / 446 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.1349, allocations: 67.78 kB / 446.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.91e-05/0.135, allocations: 34.64 kB / 446.1 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.135, allocations: 11.92 kB / 446.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.1351, allocations: 30.56 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.482e-06/0.1351, allocations: 0 / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003285/0.1354, allocations: 97.64 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.1355, allocations: 110.8 kB / 446.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.1356, allocations: 141.6 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.055e-05/0.1356, allocations: 25.7 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.905e-05/0.1357, allocations: 92.33 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.1357, allocations: 7.906 kB / 446.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-06/0.1357, allocations: 0 / 446.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.186e-05/0.1358, allocations: 326.8 kB / 446.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.25e-05/0.1359, allocations: 4 kB / 446.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.823e-05/0.1359, allocations: 39.42 kB / 447 MB, free: 11.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.1361, allocations: 51.36 kB / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1361, allocations: 0 / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001787/0.1363, allocations: 81.52 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.1363, allocations: 4.938 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1363, allocations: 4 kB / 447.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1363, allocations: 0 / 447.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.682e-05/0.1364, allocations: 15.92 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.1364, allocations: 3.984 kB / 447.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.844e-05/0.1365, allocations: 4 kB / 447.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.1365, allocations: 8.125 kB / 447.1 MB, free: 11.62 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 7.357e-05/0.1366, allocations: 122.4 kB / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.642e-05/0.1367, allocations: 53.53 kB / 447.3 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.903e-05/0.1368, allocations: 15.83 kB / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1368, allocations: 4 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.1368, allocations: 7.922 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1368, allocations: 0 / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.137, allocations: 173.6 kB / 447.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.137, allocations: 4 kB / 447.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.503e-05/0.1371, allocations: 16.05 kB / 447.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1371, allocations: 0 / 447.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.1371, allocations: 4 kB / 447.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1371, allocations: 0 / 447.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1371, allocations: 0 / 447.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000194/0.1373, allocations: 189 kB / 447.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.697e-05/0.1374, allocations: 93 kB / 447.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.1374, allocations: 0 / 447.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.1375, allocations: 8 kB / 447.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.1376, allocations: 144 / 447.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-06/0.1376, allocations: 7.984 kB / 447.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.492e-05/0.1377, allocations: 103.3 kB / 447.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1377, allocations: 4 kB / 447.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003354/0.138, allocations: 4 kB / 447.9 MB, free: 10.72 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 8.037e-05/0.1381, allocations: 103.2 kB / 448 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001707/0.1383, allocations: 39.91 kB / 448.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1383, allocations: 0 / 448.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.988e-05/0.1384, allocations: 12.25 kB / 448.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005125/0.1389, allocations: 45.88 kB / 448.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003808/0.1393, allocations: 224.5 kB / 448.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.1394, allocations: 0.6926 MB / 449 MB, free: 9.543 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.629e-05/0.1395, allocations: 7.438 kB / 449 MB, free: 9.535 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.1395, allocations: 3.938 kB / 449 MB, free: 9.531 MB / 298.7 MB Notification: Performance of Templates: time 0.002444/0.1419, allocations: 0.8233 MB / 449.9 MB, free: 8.711 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/jenkins/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