Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.00143/0.00143, allocations: 182.2 kB / 13.23 MB, free: 2.086 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.607/1.607, allocations: 205.2 MB / 219 MB, free: 9.203 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.000909/0.0009092, allocations: 92.47 kB / 267.1 MB, free: 9.277 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.08583/0.08583, allocations: 12.59 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.666e-05/3.67e-05, allocations: 0 / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09313, allocations: 50.38 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3441/0.4373, allocations: 78.67 MB / 0.503 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.4375, allocations: 81.88 kB / 0.503 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009982/0.4475, allocations: 4.14 MB / 0.5071 GB, free: 11.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4475, allocations: 0 / 0.5071 GB, free: 11.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.4476, allocations: 7.812 kB / 0.5071 GB, free: 11.09 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.0003325/0.4479, allocations: 387.8 kB / 0.5075 GB, free: 10.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.4479, allocations: 11.28 kB / 0.5075 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.78e-05/0.448, allocations: 15.41 kB / 0.5075 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.4482, allocations: 201.9 kB / 0.5077 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.4482, allocations: 15.64 kB / 0.5077 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.4482, allocations: 15.56 kB / 0.5077 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003818/0.4486, allocations: 254.9 kB / 0.508 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.4486, allocations: 0 / 0.508 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.4487, allocations: 10.45 kB / 0.508 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.4487, allocations: 0 / 0.508 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.231e-05/0.4488, allocations: 41.73 kB / 0.508 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000337/0.4491, allocations: 317.9 kB / 0.5083 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.4493, allocations: 132.2 kB / 0.5084 GB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.018e-05/0.4494, allocations: 71.16 kB / 0.5085 GB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.4494, allocations: 11.78 kB / 0.5085 GB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.4494, allocations: 38.44 kB / 0.5086 GB, free: 9.867 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.4495, allocations: 3.938 kB / 0.5086 GB, free: 9.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002408/0.4497, allocations: 123.3 kB / 0.5087 GB, free: 9.812 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.4498, allocations: 112.9 kB / 0.5088 GB, free: 9.688 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.083e-05/0.4499, allocations: 145 kB / 0.5089 GB, free: 9.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.4499, allocations: 29.64 kB / 0.5089 GB, free: 9.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.52e-05/0.4499, allocations: 92.52 kB / 0.509 GB, free: 9.465 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.4499, allocations: 18.98 kB / 0.5091 GB, free: 9.453 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.4499, allocations: 3.375 kB / 0.5091 GB, free: 9.453 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.886e-05/0.45, allocations: 328.3 kB / 0.5094 GB, free: 9.133 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.551e-05/0.45, allocations: 22.28 kB / 0.5094 GB, free: 9.129 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.359e-05/0.4501, allocations: 119.8 kB / 0.5095 GB, free: 8.988 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.745e-05/0.4502, allocations: 47.61 kB / 0.5096 GB, free: 8.973 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4502, allocations: 0 / 0.5096 GB, free: 8.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001781/0.4504, allocations: 171.2 kB / 0.5097 GB, free: 8.898 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.4504, allocations: 7.688 kB / 0.5097 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.4504, allocations: 7.906 kB / 0.5097 GB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.4504, allocations: 3.969 kB / 0.5097 GB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.4505, allocations: 31.14 kB / 0.5098 GB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.4505, allocations: 7.859 kB / 0.5098 GB, free: 8.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.553e-05/0.4506, allocations: 19.28 kB / 0.5098 GB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.4506, allocations: 11.69 kB / 0.5098 GB, free: 8.875 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 () * 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 5.537e-05/0.4507, allocations: 129.2 kB / 0.5099 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.4509, allocations: 116.8 kB / 0.51 GB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.166e-05/0.4509, allocations: 22.17 kB / 0.5101 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.4509, allocations: 3.844 kB / 0.5101 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4509, allocations: 0 / 0.5101 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.451, allocations: 0 / 0.5101 GB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001293/0.4511, allocations: 203.6 kB / 0.5103 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4511, allocations: 192 / 0.5103 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.4512, allocations: 30.48 kB / 0.5103 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.4512, allocations: 7.938 kB / 0.5103 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.4512, allocations: 3.812 kB / 0.5103 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4512, allocations: 0 / 0.5103 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4512, allocations: 7.812 kB / 0.5103 GB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.4514, allocations: 265.8 kB / 0.5106 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.4515, allocations: 99.22 kB / 0.5106 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.4515, allocations: 11.7 kB / 0.5107 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.963e-05/0.4516, allocations: 3.844 kB / 0.5107 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.838e-05/0.4516, allocations: 0 / 0.5107 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.4517, allocations: 7.125 kB / 0.5107 GB, free: 8.145 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.033e-05/0.4517, allocations: 114.6 kB / 0.5108 GB, free: 8.062 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4517, allocations: 0 / 0.5108 GB, free: 8.062 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002439/0.452, allocations: 22.19 kB / 0.5108 GB, free: 8.062 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 () * 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 8.022e-05/0.452, allocations: 115.3 kB / 0.5109 GB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001412/0.4522, allocations: 87.5 kB / 0.511 GB, free: 7.953 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4522, allocations: 3.938 kB / 0.511 GB, free: 7.949 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.409e-05/0.4522, allocations: 4.906 kB / 0.511 GB, free: 7.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.4525, allocations: 80.02 kB / 0.5111 GB, free: 7.926 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002773/0.4528, allocations: 177.2 kB / 0.5112 GB, free: 7.805 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.453, allocations: 0.7235 MB / 0.512 GB, free: 7.086 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.167e-05/0.453, allocations: 8.906 kB / 0.512 GB, free: 7.082 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.101e-05/0.453, allocations: 26.67 kB / 0.512 GB, free: 7.066 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.453, allocations: 0 / 0.512 GB, free: 7.066 MB / 330.7 MB Notification: Performance of Templates: time 0.002796/0.4558, allocations: 1.063 MB / 0.513 GB, free: 6.555 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches