Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.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.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="FIR1.y|FIR2.y|Time|sample.y|superSampleIpo.y|upSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="FIR1.y|FIR2.y|Time|sample.y|superSampleIpo.y|upSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001343/0.001343, allocations: 175.4 kB / 16.77 MB, free: 4.902 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.591/1.591, allocations: 205.4 MB / 222.9 MB, free: 9.004 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.0007649/0.0007654, allocations: 89.41 kB / 271.3 MB, free: 8.23 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.08179/0.08179, allocations: 12.6 MB / 332.2 MB, free: 11.22 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004416/0.0004417, allocations: 15.98 kB / 392.6 MB, free: 66.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09532/0.09578, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2): time 0.001858/0.09769, allocations: 1.43 MB / 444.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009262/0.09864, allocations: 0.609 MB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.09876, allocations: 7.938 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.09893, allocations: 11.92 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.09914, allocations: 35.83 kB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003335/0.09948, allocations: 99.81 kB / 445.1 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.09965, allocations: 139.6 kB / 445.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.09979, allocations: 25.55 kB / 445.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.09991, allocations: 63.77 kB / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.1001, allocations: 103.6 kB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.1002, allocations: 8 kB / 445.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.339e-05/0.1002, allocations: 4 kB / 445.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.979e-05/0.1003, allocations: 55.88 kB / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.466e-05/0.1004, allocations: 109.2 kB / 445.6 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.1005, allocations: 139.8 kB / 445.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1005, allocations: 0 / 445.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1005, allocations: 0 / 445.8 MB, free: 13.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.1005, allocations: 0 / 445.8 MB, free: 13.26 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007075/0.1013, allocations: 482.7 kB / 446.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.1013, allocations: 8.031 kB / 446.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.743e-05/0.1014, allocations: 24.66 kB / 446.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.1017, allocations: 251.8 kB / 446.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.1017, allocations: 12.38 kB / 446.5 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.1018, allocations: 16.38 kB / 446.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009287/0.1027, allocations: 0.6415 MB / 447.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.1027, allocations: 3.938 kB / 447.2 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.1027, allocations: 12 kB / 447.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.567e-05/0.1028, allocations: 19.98 kB / 447.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003431/0.1031, allocations: 183.8 kB / 447.4 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003785/0.1035, allocations: 366.2 kB / 447.8 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003656/0.1039, allocations: 247.6 kB / 448 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.1041, allocations: 160.1 kB / 448.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.1042, allocations: 11.98 kB / 448.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.1042, allocations: 38.56 kB / 448.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.703e-06/0.1042, allocations: 0 / 448.2 MB, free: 10.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007211/0.1049, allocations: 433.2 kB / 448.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.1e-05/0.105, allocations: 134.8 kB / 448.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.1051, allocations: 167.4 kB / 448.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.1052, allocations: 33.7 kB / 449 MB, free: 9.809 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.866e-05/0.1052, allocations: 105.1 kB / 449.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.1052, allocations: 43.53 kB / 449.1 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.1053, allocations: 12 kB / 449.1 MB, free: 9.648 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.408e-05/0.1053, allocations: 330.8 kB / 449.5 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.1055, allocations: 80.77 kB / 449.5 MB, free: 9.238 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.1057, allocations: 318.7 kB / 449.8 MB, free: 8.805 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.106, allocations: 428.8 kB / 450.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.106, allocations: 4 kB / 450.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004638/0.1065, allocations: 405.6 kB / 450.7 MB, free: 7.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1065, allocations: 8 kB / 450.7 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.1065, allocations: 16.3 kB / 450.7 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.1065, allocations: 12 kB / 450.7 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.1067, allocations: 79.84 kB / 450.8 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.1068, allocations: 15.94 kB / 450.8 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.1069, allocations: 31.83 kB / 450.8 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.1069, allocations: 27.98 kB / 450.8 MB, free: 7.672 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 13 (superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,FIR1.first,FIR1.u_buffer[2],FIR1.u_buffer[1],FIR2.first,FIR2.u_buffer[4],FIR2.u_buffer[3],FIR2.u_buffer[2],FIR2.u_buffer[1],upSample.b_super,superSampleIpo.first,superSampleIpo.uu,upSample.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001324/0.1071, allocations: 186.4 kB / 451 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004027/0.1075, allocations: 294.2 kB / 451.3 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.744e-05/0.1076, allocations: 38.64 kB / 451.4 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.1076, allocations: 4 kB / 451.4 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.1076, allocations: 0 / 451.4 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1076, allocations: 3.984 kB / 451.4 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.1078, allocations: 249.2 kB / 451.6 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1078, allocations: 0 / 451.6 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.108, allocations: 63.91 kB / 451.7 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.108, allocations: 8 kB / 451.7 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.108, allocations: 11.98 kB / 451.7 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1081, allocations: 0 / 451.7 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1081, allocations: 4 kB / 451.7 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004673/0.1085, allocations: 455.9 kB / 452.1 MB, free: 6.297 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.391e-05/0.1086, allocations: 132.7 kB / 452.3 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.464e-05/0.1087, allocations: 20 kB / 452.3 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.1088, allocations: 19.98 kB / 452.3 MB, free: 6.109 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.147e-05/0.1089, allocations: 0 / 452.3 MB, free: 6.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.1089, allocations: 11.98 kB / 452.3 MB, free: 6.098 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.27e-05/0.109, allocations: 127.2 kB / 452.4 MB, free: 5.973 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.109, allocations: 0 / 452.4 MB, free: 5.973 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00034/0.1093, allocations: 48 kB / 452.5 MB, free: 5.926 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: 7 (upSample.b_super,FIR2.first,FIR1.first,superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (upSample.b_super,FIR2.u_buffer[1],FIR2.u_buffer[2],FIR2.u_buffer[3],FIR2.u_buffer[4],FIR2.first,FIR1.u_buffer[1],FIR1.u_buffer[2],FIR1.first,superSampleIpo.ticks,upSample.b,superSampleIpo.uu,superSampleIpo.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.0001442/0.1095, allocations: 119.2 kB / 452.6 MB, free: 5.801 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004326/0.1099, allocations: 289.4 kB / 452.9 MB, free: 5.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1099, allocations: 0 / 452.9 MB, free: 5.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.65e-05/0.11, allocations: 11.98 kB / 452.9 MB, free: 5.508 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.1106, allocations: 223.7 kB / 453.1 MB, free: 5.289 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.1116, allocations: 0.6443 MB / 453.8 MB, free: 4.613 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.1118, allocations: 0.7803 MB / 454.5 MB, free: 3.809 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.169e-05/0.1119, allocations: 27.44 kB / 454.6 MB, free: 3.781 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1119, allocations: 0 / 454.6 MB, free: 3.781 MB / 298.7 MB Notification: Performance of Templates: time 0.004038/0.116, allocations: 2.91 MB / 457.5 MB, free: 0.8711 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches