Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000861/0.0008609, allocations: 177.8 kB / 16.77 MB, free: 4.926 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.461/1.461, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0009265/0.0009264, allocations: 89.42 kB / 271.3 MB, free: 8.242 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.09983/0.09983, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000577/0.0005773, allocations: 20 kB / 392.6 MB, free: 66.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1354, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample): time 0.001649/0.1371, allocations: 1.301 MB / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007995/0.1379, allocations: 0.5156 MB / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.938e-05/0.138, allocations: 8 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.039e-05/0.1381, allocations: 3.938 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.1382, allocations: 15.86 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.1386, allocations: 43.84 kB / 444.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.1387, allocations: 63.72 kB / 444.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.1388, allocations: 19.97 kB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.128e-05/0.1389, allocations: 19.88 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.048e-05/0.139, allocations: 19.92 kB / 445 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.139, allocations: 0 / 445 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.417e-05/0.139, allocations: 7.938 kB / 445 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.528e-05/0.1391, allocations: 15.97 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.79e-05/0.1391, allocations: 53.45 kB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.767e-05/0.1392, allocations: 39.92 kB / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1392, allocations: 0 / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1392, allocations: 0 / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1392, allocations: 0 / 445.1 MB, free: 13.96 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004425/0.1397, allocations: 383.4 kB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1397, allocations: 8.031 kB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.1398, allocations: 16.75 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.14, allocations: 196.1 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.14, allocations: 4.375 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.14, allocations: 384 / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.1403, allocations: 151 kB / 445.8 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1403, allocations: 0 / 445.8 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.1403, allocations: 0 / 445.8 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1403, allocations: 0 / 445.8 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.631e-05/0.1404, allocations: 31.92 kB / 445.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002977/0.1407, allocations: 287.5 kB / 446.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.1409, allocations: 98.36 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.166e-05/0.1409, allocations: 55.47 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.141, allocations: 4 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.141, allocations: 38.55 kB / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.141, allocations: 0 / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002758/0.1413, allocations: 105.8 kB / 446.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.1413, allocations: 144.5 kB / 446.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.1415, allocations: 150.3 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.298e-06/0.1415, allocations: 33.64 kB / 446.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.1415, allocations: 96.11 kB / 446.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.341e-05/0.1415, allocations: 7.938 kB / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-06/0.1415, allocations: 0 / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.719e-05/0.1416, allocations: 322.8 kB / 447.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.16e-05/0.1417, allocations: 12 kB / 447.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.736e-05/0.1417, allocations: 53.14 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.241e-05/0.1418, allocations: 65.08 kB / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1418, allocations: 0 / 447.3 MB, free: 11.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000129/0.142, allocations: 93.45 kB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.142, allocations: 4 kB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.142, allocations: 7.938 kB / 447.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.142, allocations: 0 / 447.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.457e-05/0.1421, allocations: 19.98 kB / 447.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1421, allocations: 4 kB / 447.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.438e-05/0.1422, allocations: 4 kB / 447.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.026e-06/0.1422, allocations: 4.188 kB / 447.4 MB, free: 11.28 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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.0001257/0.1423, allocations: 133.5 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.587e-05/0.1424, allocations: 65.53 kB / 447.6 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.598e-05/0.1425, allocations: 15.83 kB / 447.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1425, allocations: 0 / 447.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1425, allocations: 4 kB / 447.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1425, allocations: 0 / 447.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.1427, allocations: 185.4 kB / 447.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1427, allocations: 8.094 kB / 447.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/0.1427, allocations: 15.98 kB / 447.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1427, allocations: 4 kB / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.779e-06/0.1428, allocations: 0 / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1428, allocations: 0 / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1428, allocations: 4 kB / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.1429, allocations: 201.9 kB / 448.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.408e-05/0.143, allocations: 93 kB / 448.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.143, allocations: 3.984 kB / 448.2 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.936e-05/0.1431, allocations: 8 kB / 448.2 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.1431, allocations: 4 kB / 448.2 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.1432, allocations: 192 / 448.2 MB, free: 10.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.532e-05/0.1432, allocations: 123 kB / 448.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1432, allocations: 0 / 448.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.1434, allocations: 12 kB / 448.3 MB, free: 10.31 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.328e-05/0.1435, allocations: 95.25 kB / 448.4 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.1437, allocations: 48.22 kB / 448.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1437, allocations: 4.062 kB / 448.4 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.669e-05/0.1437, allocations: 11.94 kB / 448.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000405/0.1441, allocations: 51.89 kB / 448.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003484/0.1445, allocations: 249.6 kB / 448.7 MB, free: 9.805 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.1446, allocations: 0.7004 MB / 449.4 MB, free: 9.078 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.7e-05/0.1447, allocations: 11.44 kB / 449.5 MB, free: 9.07 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.1447, allocations: 0 / 449.5 MB, free: 9.07 MB / 298.7 MB Notification: Performance of Templates: time 0.002073/0.1468, allocations: 0.9984 MB / 450.5 MB, free: 8.074 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches