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.001543/0.001543, allocations: 186.2 kB / 16.44 MB, free: 5.672 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.928/1.928, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001118/0.001118, allocations: 86.97 kB / 270.9 MB, free: 8.371 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.09927/0.09927, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007532/0.0007533, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08977/0.09056, allocations: 50.38 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4282/0.5189, allocations: 78.43 MB / 0.5086 GB, free: 12.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.5192, allocations: 75.38 kB / 0.5087 GB, free: 12.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005709/0.5249, allocations: 1.559 MB / 0.5102 GB, free: 12.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.525, allocations: 0 / 0.5102 GB, free: 12.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.525, allocations: 7.844 kB / 0.5102 GB, free: 12.26 MB / 330.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.0003965/0.5254, allocations: 380.4 kB / 0.5105 GB, free: 11.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.5254, allocations: 7.688 kB / 0.5106 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.5255, allocations: 11.69 kB / 0.5106 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.5257, allocations: 201.8 kB / 0.5108 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.5257, allocations: 6.703 kB / 0.5108 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.5258, allocations: 7.781 kB / 0.5108 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.5261, allocations: 144.2 kB / 0.5109 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.5261, allocations: 0 / 0.5109 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.5261, allocations: 3.75 kB / 0.5109 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.5262, allocations: 0 / 0.5109 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.5263, allocations: 35.17 kB / 0.5109 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003822/0.5267, allocations: 292.9 kB / 0.5112 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.5269, allocations: 93.27 kB / 0.5113 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.5269, allocations: 11.66 kB / 0.5113 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.5269, allocations: 34.56 kB / 0.5114 GB, free: 11.06 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.703e-06/0.5269, allocations: 0 / 0.5114 GB, free: 11.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003756/0.5273, allocations: 106.5 kB / 0.5115 GB, free: 11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.5274, allocations: 140.5 kB / 0.5116 GB, free: 10.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.5275, allocations: 133.9 kB / 0.5117 GB, free: 10.74 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.5276, allocations: 25.7 kB / 0.5117 GB, free: 10.71 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.5276, allocations: 162 kB / 0.5119 GB, free: 10.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.5276, allocations: 3.625 kB / 0.5119 GB, free: 10.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.5276, allocations: 0 / 0.5119 GB, free: 10.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.435e-05/0.5277, allocations: 314.8 kB / 0.5122 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.155e-05/0.5278, allocations: 18.56 kB / 0.5122 GB, free: 10.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.199e-05/0.5279, allocations: 61.89 kB / 0.5123 GB, free: 10.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.268e-05/0.528, allocations: 22.52 kB / 0.5123 GB, free: 10.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.528, allocations: 3.953 kB / 0.5123 GB, free: 10.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000211/0.5282, allocations: 79.36 kB / 0.5124 GB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.5282, allocations: 7.719 kB / 0.5124 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.5283, allocations: 0 / 0.5124 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.5283, allocations: 4.172 kB / 0.5124 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.5284, allocations: 18.94 kB / 0.5124 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.5285, allocations: 11.8 kB / 0.5124 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.627e-05/0.5285, allocations: 11.69 kB / 0.5124 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.5286, allocations: 3.688 kB / 0.5124 GB, free: 10.09 MB / 330.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 8.955e-05/0.5287, allocations: 120.7 kB / 0.5125 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.5288, allocations: 68.08 kB / 0.5126 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.595e-05/0.5289, allocations: 18.95 kB / 0.5126 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.5289, allocations: 0 / 0.5126 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.5289, allocations: 3.875 kB / 0.5126 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.5289, allocations: 3.938 kB / 0.5126 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.5291, allocations: 177.4 kB / 0.5128 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.5291, allocations: 3.844 kB / 0.5128 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.5292, allocations: 11.64 kB / 0.5128 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.5292, allocations: 3.812 kB / 0.5128 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.5293, allocations: 3.984 kB / 0.5128 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.5293, allocations: 7.781 kB / 0.5128 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5293, allocations: 4 kB / 0.5128 GB, free: 9.695 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.5296, allocations: 234 kB / 0.5131 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.676e-05/0.5296, allocations: 96.12 kB / 0.5132 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.5297, allocations: 0 / 0.5132 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.5298, allocations: 3.812 kB / 0.5132 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.5298, allocations: 3.984 kB / 0.5132 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.5298, allocations: 3.812 kB / 0.5132 GB, free: 9.371 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.947e-05/0.5299, allocations: 117.5 kB / 0.5133 GB, free: 9.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.53, allocations: 0 / 0.5133 GB, free: 9.285 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003113/0.5303, allocations: 15.09 kB / 0.5133 GB, free: 9.281 MB / 330.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 9.913e-05/0.5304, allocations: 98.67 kB / 0.5134 GB, free: 9.188 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000214/0.5306, allocations: 45.61 kB / 0.5134 GB, free: 9.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5306, allocations: 0 / 0.5134 GB, free: 9.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.481e-05/0.5307, allocations: 19.98 kB / 0.5135 GB, free: 9.168 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.5311, allocations: 47.73 kB / 0.5135 GB, free: 9.148 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004462/0.5316, allocations: 257.5 kB / 0.5137 GB, free: 8.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.5318, allocations: 0.6999 MB / 0.5144 GB, free: 8.207 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.971e-05/0.5318, allocations: 14.69 kB / 0.5144 GB, free: 8.199 MB / 330.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5318, allocations: 3.938 kB / 0.5144 GB, free: 8.195 MB / 330.7 MB Notification: Performance of Templates: time 0.002817/0.5346, allocations: 0.9877 MB / 0.5154 GB, free: 7.699 MB / 330.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/jenkins1/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