Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001518/0.001518, 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.935/1.935, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001112/0.001112, allocations: 93.28 kB / 270.9 MB, free: 8.379 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.09892/0.09892, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005548/0.0005547, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0887/0.08929, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.5014, allocations: 78.76 MB / 0.5089 GB, free: 12.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.5017, allocations: 79.25 kB / 0.509 GB, free: 12.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0165/0.5183, allocations: 4.155 MB / 0.513 GB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5183, allocations: 0 / 0.513 GB, free: 11.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.5183, allocations: 7.875 kB / 0.513 GB, free: 11.34 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0004841/0.5188, allocations: 412.5 kB / 0.5134 GB, free: 10.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.5189, allocations: 7.688 kB / 0.5134 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.58e-05/0.519, allocations: 15.5 kB / 0.5134 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002325/0.5192, allocations: 209.2 kB / 0.5136 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.5192, allocations: 15.3 kB / 0.5137 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.5193, allocations: 7 kB / 0.5137 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005985/0.5199, allocations: 280.9 kB / 0.5139 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.5199, allocations: 0 / 0.5139 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.5199, allocations: 3.562 kB / 0.5139 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.52, allocations: 7.797 kB / 0.5139 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.5202, allocations: 52.05 kB / 0.514 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004152/0.5206, allocations: 306.4 kB / 0.5143 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002863/0.5209, allocations: 142.8 kB / 0.5144 GB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.508e-05/0.521, allocations: 7.375 kB / 0.5144 GB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.521, allocations: 38.31 kB / 0.5145 GB, free: 10.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.873e-06/0.521, allocations: 0 / 0.5145 GB, free: 10.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005539/0.5216, allocations: 176.8 kB / 0.5146 GB, free: 10.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.5216, allocations: 121.7 kB / 0.5148 GB, free: 9.902 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.5218, allocations: 141.6 kB / 0.5149 GB, free: 9.797 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.5218, allocations: 25.7 kB / 0.5149 GB, free: 9.766 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.015e-05/0.5219, allocations: 156.3 kB / 0.5151 GB, free: 9.617 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.633e-05/0.5219, allocations: 22.33 kB / 0.5151 GB, free: 9.605 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.318e-06/0.5219, allocations: 0 / 0.5151 GB, free: 9.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.029e-05/0.522, allocations: 321.6 kB / 0.5154 GB, free: 9.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.5221, allocations: 28.55 kB / 0.5154 GB, free: 9.281 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.5223, allocations: 139.2 kB / 0.5155 GB, free: 9.129 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.5224, allocations: 51.98 kB / 0.5156 GB, free: 9.117 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5225, allocations: 0 / 0.5156 GB, free: 9.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003763/0.5228, allocations: 182.1 kB / 0.5158 GB, free: 9.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.5229, allocations: 11.75 kB / 0.5158 GB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.5229, allocations: 7.719 kB / 0.5158 GB, free: 9.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.5229, allocations: 3.844 kB / 0.5158 GB, free: 9.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.5231, allocations: 30.95 kB / 0.5158 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.5232, allocations: 8.688 kB / 0.5158 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.5233, allocations: 23.27 kB / 0.5159 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.5233, allocations: 7.844 kB / 0.5159 GB, free: 9.008 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001305/0.5235, allocations: 147.2 kB / 0.516 GB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002423/0.5237, allocations: 117.4 kB / 0.5161 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.706e-05/0.5238, allocations: 22.2 kB / 0.5161 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.5238, allocations: 3.906 kB / 0.5161 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.5238, allocations: 0 / 0.5161 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.5238, allocations: 0 / 0.5161 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002001/0.524, allocations: 209 kB / 0.5163 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.524, allocations: 3.906 kB / 0.5163 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.5242, allocations: 27.42 kB / 0.5164 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.5243, allocations: 0 / 0.5164 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.5243, allocations: 6.688 kB / 0.5164 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.5243, allocations: 0 / 0.5164 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.5243, allocations: 3.938 kB / 0.5164 GB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003738/0.5247, allocations: 277.7 kB / 0.5166 GB, free: 8.375 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.949e-05/0.5248, allocations: 103.2 kB / 0.5167 GB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.5248, allocations: 0 / 0.5167 GB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.525, allocations: 7.406 kB / 0.5167 GB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.525, allocations: 11.84 kB / 0.5168 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.525, allocations: 7.844 kB / 0.5168 GB, free: 8.258 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.038e-05/0.5251, allocations: 119.6 kB / 0.5169 GB, free: 8.172 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5251, allocations: 0 / 0.5169 GB, free: 8.172 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003744/0.5255, allocations: 23.09 kB / 0.5169 GB, free: 8.168 MB / 330.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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001066/0.5256, allocations: 102.2 kB / 0.517 GB, free: 8.078 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000334/0.526, allocations: 111.3 kB / 0.5171 GB, free: 8.051 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.526, allocations: 0 / 0.5171 GB, free: 8.051 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.36e-05/0.5261, allocations: 15.48 kB / 0.5171 GB, free: 8.047 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.5266, allocations: 76.78 kB / 0.5172 GB, free: 8.023 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000593/0.5272, allocations: 342 kB / 0.5175 GB, free: 7.758 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.5274, allocations: 0.7234 MB / 0.5182 GB, free: 7.039 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.507e-05/0.5275, allocations: 18.16 kB / 0.5182 GB, free: 7.031 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5275, allocations: 0 / 0.5182 GB, free: 7.031 MB / 330.7 MB Notification: Performance of Templates: time 0.003551/0.531, allocations: 1.418 MB / 0.5196 GB, free: 6.328 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches