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.001339/0.001339, allocations: 182.6 kB / 16.45 MB, free: 5.652 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.576/1.576, allocations: 205.4 MB / 222.6 MB, free: 9.012 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.0008091/0.000809, allocations: 91.81 kB / 270.9 MB, free: 8.344 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.06831/0.06831, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003713/0.0003714, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07115/0.07154, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.001521/0.07311, allocations: 1.416 MB / 443.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007933/0.07393, allocations: 0.5701 MB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.227e-05/0.07404, allocations: 3.938 kB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.339e-05/0.07409, allocations: 7.938 kB / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.07422, allocations: 11.88 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.0746, allocations: 79.84 kB / 444.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.07471, allocations: 83.75 kB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.07482, allocations: 29.09 kB / 444.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.037e-05/0.07492, allocations: 35.8 kB / 444.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.002e-05/0.07499, allocations: 35.83 kB / 444.6 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.07502, allocations: 4 kB / 444.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.524e-05/0.07504, allocations: 4 kB / 444.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.686e-05/0.07508, allocations: 15.92 kB / 444.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.21e-05/0.07512, allocations: 53.56 kB / 444.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.218e-05/0.07521, allocations: 67.88 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.07522, allocations: 4 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.07523, allocations: 0 / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.07524, allocations: 0 / 444.8 MB, free: 14.02 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000414/0.07566, allocations: 407.1 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.0757, allocations: 8.031 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.107e-05/0.07574, allocations: 15.81 kB / 445.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.07591, allocations: 210.7 kB / 445.4 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.07595, allocations: 12 kB / 445.4 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.07597, allocations: 12 kB / 445.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004102/0.07639, allocations: 274.1 kB / 445.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.07641, allocations: 8 kB / 445.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.07643, allocations: 4 kB / 445.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.07644, allocations: 0 / 445.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.07658, allocations: 59.89 kB / 445.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002784/0.07686, allocations: 306.4 kB / 446.1 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.07707, allocations: 139.9 kB / 446.2 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.07718, allocations: 70.66 kB / 446.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.07722, allocations: 7.984 kB / 446.3 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.07724, allocations: 38.5 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.232e-06/0.07724, allocations: 0 / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003814/0.07763, allocations: 177.6 kB / 446.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/0.07769, allocations: 118.8 kB / 446.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9e-05/0.07779, allocations: 146.2 kB / 446.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.0778, allocations: 37.64 kB / 446.8 MB, free: 11.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.9e-05/0.07784, allocations: 100.1 kB / 446.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.07786, allocations: 15.89 kB / 446.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.07787, allocations: 0 / 446.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.428e-05/0.07792, allocations: 330.8 kB / 447.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.265e-05/0.07799, allocations: 24.36 kB / 447.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.469e-05/0.07808, allocations: 139.3 kB / 447.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.448e-05/0.07817, allocations: 51.92 kB / 447.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.07818, allocations: 4 kB / 447.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002334/0.07842, allocations: 181.6 kB / 447.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.07845, allocations: 12.03 kB / 447.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.07846, allocations: 4 kB / 447.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.07848, allocations: 4 kB / 447.6 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.07859, allocations: 32.3 kB / 447.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.07861, allocations: 7.938 kB / 447.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.1e-05/0.0787, allocations: 15.98 kB / 447.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.07872, allocations: 8.312 kB / 447.7 MB, free: 10.77 MB / 298.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 8.174e-05/0.07881, allocations: 161.3 kB / 447.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.07897, allocations: 117.4 kB / 448 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.217e-05/0.07902, allocations: 20.7 kB / 448 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.07903, allocations: 7.984 kB / 448 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.07904, allocations: 0 / 448 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.07905, allocations: 0 / 448 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.0792, allocations: 197.6 kB / 448.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.07922, allocations: 4 kB / 448.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.07933, allocations: 27.92 kB / 448.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.07934, allocations: 0 / 448.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.07936, allocations: 4 kB / 448.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.07937, allocations: 4 kB / 448.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.07937, allocations: 0 / 448.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002278/0.0796, allocations: 255.9 kB / 448.5 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.97e-05/0.07966, allocations: 108.9 kB / 448.6 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.07969, allocations: 4 kB / 448.6 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-05/0.07978, allocations: 8 kB / 448.6 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.799e-05/0.07982, allocations: 11.92 kB / 448.6 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.07983, allocations: 8 kB / 448.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.226e-05/0.07989, allocations: 123.9 kB / 448.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07989, allocations: 0 / 448.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002498/0.08015, allocations: 20 kB / 448.8 MB, free: 9.602 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: 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 7.374e-05/0.08023, allocations: 95.25 kB / 448.9 MB, free: 9.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002116/0.08045, allocations: 115.7 kB / 449 MB, free: 9.383 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.08046, allocations: 1.062 kB / 449 MB, free: 9.383 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.672e-05/0.0805, allocations: 7.984 kB / 449 MB, free: 9.375 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.08094, allocations: 88.33 kB / 449.1 MB, free: 9.289 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003951/0.08135, allocations: 329.3 kB / 449.4 MB, free: 8.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.0815, allocations: 0.7205 MB / 450.1 MB, free: 8.184 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.3e-05/0.08156, allocations: 19.44 kB / 450.1 MB, free: 8.164 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.08156, allocations: 0 / 450.1 MB, free: 8.164 MB / 298.7 MB Notification: Performance of Templates: time 0.002345/0.08391, allocations: 1.441 MB / 451.6 MB, free: 6.719 MB / 298.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/jenkins/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