Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001108/0.001108, allocations: 180.4 kB / 15.8 MB, free: 6.34 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.489/1.489, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008351/0.0008352, allocations: 90.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07453/0.07453, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004581/0.0004584, allocations: 15.88 kB / 392 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1167, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.237, allocations: 79.22 MB / 0.5094 GB, free: 11.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.2373, allocations: 79.95 kB / 0.5094 GB, free: 11.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02002/0.2574, allocations: 5.232 MB / 0.5146 GB, free: 6.285 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.2574, allocations: 0 / 0.5146 GB, free: 6.285 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.2575, allocations: 8 kB / 0.5146 GB, free: 6.277 MB / 362.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.00109/0.2586, allocations: 490.4 kB / 0.515 GB, free: 5.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.873e-05/0.2587, allocations: 8.031 kB / 0.515 GB, free: 5.742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.2588, allocations: 27.66 kB / 0.5151 GB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005313/0.2593, allocations: 242.6 kB / 0.5153 GB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.595e-05/0.2594, allocations: 19.95 kB / 0.5153 GB, free: 5.418 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.362e-05/0.2595, allocations: 23.98 kB / 0.5153 GB, free: 5.395 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.2612, allocations: 0.622 MB / 0.5159 GB, free: 4.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.2613, allocations: 4 kB / 0.5159 GB, free: 4.746 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.2613, allocations: 7.984 kB / 0.516 GB, free: 4.738 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-05/0.2613, allocations: 8 kB / 0.516 GB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006037/0.262, allocations: 187.8 kB / 0.5161 GB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008339/0.2628, allocations: 374.2 kB / 0.5165 GB, free: 4.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007471/0.2636, allocations: 243.7 kB / 0.5167 GB, free: 3.859 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.2636, allocations: 8.203 kB / 0.5167 GB, free: 3.852 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.082e-05/0.2637, allocations: 47 kB / 0.5168 GB, free: 3.797 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 3.637e-06/0.2637, allocations: 0 / 0.5168 GB, free: 3.797 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.001468/0.2652, allocations: 425.7 kB / 0.5172 GB, free: 3.375 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/0.2654, allocations: 138.8 kB / 0.5173 GB, free: 3.215 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.2656, allocations: 151.3 kB / 0.5175 GB, free: 3.062 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.541e-05/0.2657, allocations: 33.7 kB / 0.5175 GB, free: 3.023 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.584e-05/0.2658, allocations: 101 kB / 0.5176 GB, free: 2.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.865e-05/0.2659, allocations: 47.61 kB / 0.5176 GB, free: 2.875 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.2659, allocations: 8 kB / 0.5176 GB, free: 2.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.2661, allocations: 338.8 kB / 0.518 GB, free: 2.527 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002487/0.2664, allocations: 76.77 kB / 0.518 GB, free: 2.453 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004513/0.2668, allocations: 318.7 kB / 0.5183 GB, free: 2.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.2672, allocations: 135.9 kB / 0.5185 GB, free: 1.887 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/0.2673, allocations: 4 kB / 0.5185 GB, free: 1.883 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000982/0.2683, allocations: 405.6 kB / 0.5189 GB, free: 1.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.819e-05/0.2683, allocations: 12 kB / 0.5189 GB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.2683, allocations: 12.03 kB / 0.5189 GB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.155e-05/0.2684, allocations: 19.98 kB / 0.5189 GB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004048/0.2688, allocations: 83.84 kB / 0.519 GB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.352e-05/0.2689, allocations: 19.92 kB / 0.519 GB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.2692, allocations: 31.69 kB / 0.519 GB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.397e-05/0.2692, allocations: 24 kB / 0.5191 GB, free: 1.281 MB / 362.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 (FIR1.first,$CLKPRE.FIR1.first,FIR2.first,$CLKPRE.FIR2.first,upSample.b_super,$CLKPRE.upSample.b_super,superSampleIpo.ticks,$CLKPRE.superSampleIpo.ticks,superSampleIpo.usedFactor,superSampleIpo.first,$CLKPRE.superSampleIpo.first,upSample.b,$CLKPRE.upSample.b) * Number of discrete states: 0 () * Number of clocked states: 13 (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.ticks,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.0002673/0.2695, allocations: 178.8 kB / 0.5192 GB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008439/0.2703, allocations: 293.3 kB / 0.5195 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.2705, allocations: 34.64 kB / 0.5195 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.2705, allocations: 8 kB / 0.5196 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2705, allocations: 0 / 0.5196 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.2705, allocations: 7.984 kB / 0.5196 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004258/0.271, allocations: 249.2 kB / 0.5198 GB, free: 472 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.271, allocations: 0 / 0.5198 GB, free: 472 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004661/0.2715, allocations: 63.84 kB / 0.5199 GB, free: 408 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/0.2715, allocations: 7.984 kB / 0.5199 GB, free: 400 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.426e-05/0.2716, allocations: 4 kB / 0.5199 GB, free: 396 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.2716, allocations: 8 kB / 0.5199 GB, free: 388 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2716, allocations: 0 / 0.5199 GB, free: 388 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2456/0.5172, allocations: 471 kB / 0.5203 GB, free: 85.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.5174, allocations: 131.3 kB / 0.5205 GB, free: 85.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.59e-05/0.5175, allocations: 16.78 kB / 0.5205 GB, free: 85.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.5177, allocations: 14.05 kB / 0.5205 GB, free: 85.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.5178, allocations: 2.719 kB / 0.5205 GB, free: 85.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.5178, allocations: 13.2 kB / 0.5205 GB, free: 85.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001348/0.5179, allocations: 128.6 kB / 0.5206 GB, free: 85.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5179, allocations: 0 / 0.5206 GB, free: 85.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006236/0.5186, allocations: 53.56 kB / 0.5207 GB, free: 85.77 MB / 362.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 (superSampleIpo.usedFactor,superSampleIpo.ticks,upSample.b_super,FIR2.first,FIR1.first,upSample.b,superSampleIpo.first) * Number of discrete states: 0 () * Number of clocked states: 13 (superSampleIpo.ticks,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,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.00016/0.5187, allocations: 107 kB / 0.5208 GB, free: 85.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000554/0.5193, allocations: 298.2 kB / 0.5211 GB, free: 85.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5193, allocations: 0 / 0.5211 GB, free: 85.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.011e-05/0.5194, allocations: 11.41 kB / 0.5211 GB, free: 85.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006418/0.52, allocations: 213.1 kB / 0.5213 GB, free: 85.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.5211, allocations: 0.5734 MB / 0.5218 GB, free: 85.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.5214, allocations: 0.784 MB / 0.5226 GB, free: 84.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.342e-05/0.5215, allocations: 22.23 kB / 0.5226 GB, free: 84.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.986e-05/0.5216, allocations: 35.81 kB / 0.5227 GB, free: 84.67 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5216, allocations: 0 / 0.5227 GB, free: 84.67 MB / 362.7 MB Notification: Performance of Templates: time 0.007191/0.5288, allocations: 2.294 MB / 0.5249 GB, free: 84.55 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches