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.003857/0.003866, allocations: 188.8 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.01/4.01, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.002043/0.002043, allocations: 86.86 kB / 270.9 MB, free: 13.37 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.2005/0.2005, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009168/0.0009171, allocations: 13.53 kB / 392 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2298, allocations: 50.37 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2): time 0.003803/0.2337, allocations: 1.429 MB / 443.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.2361, allocations: 0.6091 MB / 444.4 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002911/0.2365, allocations: 3.938 kB / 444.4 MB, free: 9.555 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.2368, allocations: 19.92 kB / 444.4 MB, free: 9.535 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004263/0.2372, allocations: 31.83 kB / 444.4 MB, free: 9.504 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.2384, allocations: 113.4 kB / 444.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003772/0.2388, allocations: 87.83 kB / 444.6 MB, free: 9.309 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.239, allocations: 33.48 kB / 444.7 MB, free: 9.273 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.2393, allocations: 59.75 kB / 444.7 MB, free: 9.215 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003183/0.2396, allocations: 87.66 kB / 444.8 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.525e-05/0.2397, allocations: 8 kB / 444.8 MB, free: 9.121 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.187e-05/0.2398, allocations: 4 kB / 444.8 MB, free: 9.117 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.24, allocations: 59.86 kB / 444.9 MB, free: 9.059 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.2401, allocations: 57.58 kB / 444.9 MB, free: 8.996 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.2404, allocations: 132.3 kB / 445.1 MB, free: 8.867 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2405, allocations: 4 kB / 445.1 MB, free: 8.863 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.507e-06/0.2405, allocations: 0 / 445.1 MB, free: 8.863 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2405, allocations: 0 / 445.1 MB, free: 8.863 MB / 282.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.001452/0.242, allocations: 490.6 kB / 445.6 MB, free: 8.336 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.2421, allocations: 8.031 kB / 445.6 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.2422, allocations: 23.72 kB / 445.6 MB, free: 8.305 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.2427, allocations: 246.7 kB / 445.8 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.194e-05/0.2428, allocations: 16 kB / 445.8 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.142e-05/0.2429, allocations: 16 kB / 445.9 MB, free: 7.992 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002636/0.2456, allocations: 0.6411 MB / 446.5 MB, free: 7.324 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/0.2457, allocations: 0 / 446.5 MB, free: 7.324 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.289e-05/0.2458, allocations: 4 kB / 446.5 MB, free: 7.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.414e-05/0.2458, allocations: 16 kB / 446.5 MB, free: 7.305 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.2469, allocations: 187.8 kB / 446.7 MB, free: 7.121 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008528/0.2478, allocations: 366.3 kB / 447.1 MB, free: 6.707 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.249, allocations: 243.7 kB / 447.3 MB, free: 6.441 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.219e-05/0.2491, allocations: 12.5 kB / 447.3 MB, free: 6.43 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/0.2492, allocations: 38.56 kB / 447.3 MB, free: 6.383 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 6.252e-06/0.2492, allocations: 0 / 447.3 MB, free: 6.383 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.004704/0.254, allocations: 425.8 kB / 447.8 MB, free: 5.961 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.2542, allocations: 146.8 kB / 447.9 MB, free: 5.793 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003014/0.2545, allocations: 172.1 kB / 448.1 MB, free: 5.617 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.2546, allocations: 29.7 kB / 448.1 MB, free: 5.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.909e-05/0.2547, allocations: 163.6 kB / 448.3 MB, free: 5.422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.899e-05/0.2548, allocations: 47.53 kB / 448.3 MB, free: 5.375 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.2549, allocations: 8 kB / 448.3 MB, free: 5.367 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.255, allocations: 326.8 kB / 448.6 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.2554, allocations: 72.83 kB / 448.7 MB, free: 4.969 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005113/0.2559, allocations: 330.7 kB / 449 MB, free: 4.523 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005224/0.2565, allocations: 127.8 kB / 449.2 MB, free: 4.398 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.2565, allocations: 4 kB / 449.2 MB, free: 4.395 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.005878/0.2624, allocations: 397.6 kB / 449.5 MB, free: 4 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/0.2625, allocations: 8 kB / 449.6 MB, free: 3.992 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.739e-05/0.2626, allocations: 12.16 kB / 449.6 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.194e-05/0.2627, allocations: 16 kB / 449.6 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007492/0.2634, allocations: 87.83 kB / 449.7 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.377e-05/0.2635, allocations: 11.94 kB / 449.7 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004914/0.264, allocations: 39.75 kB / 449.7 MB, free: 3.828 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.939e-05/0.2641, allocations: 31.94 kB / 449.7 MB, free: 3.797 MB / 282.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.0004384/0.2646, allocations: 178.7 kB / 449.9 MB, free: 3.613 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005583/0.2702, allocations: 293.3 kB / 450.2 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001911/0.2705, allocations: 38.66 kB / 450.2 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.2705, allocations: 11.92 kB / 450.3 MB, free: 3.27 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.2705, allocations: 0 / 450.3 MB, free: 3.27 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.2706, allocations: 0 / 450.3 MB, free: 3.27 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005144/0.2711, allocations: 249.2 kB / 450.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/0.2711, allocations: 0 / 450.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008842/0.272, allocations: 67.91 kB / 450.6 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.594e-05/0.2721, allocations: 0 / 450.6 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-05/0.2722, allocations: 11.98 kB / 450.6 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.969e-06/0.2722, allocations: 4 kB / 450.6 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.2723, allocations: 7.938 kB / 450.6 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005765/0.278, allocations: 467.5 kB / 451 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002721/0.2784, allocations: 124.8 kB / 451.2 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.2785, allocations: 19.98 kB / 451.2 MB, free: 2.238 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003747/0.2789, allocations: 15.98 kB / 451.2 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.279, allocations: 3.953 kB / 451.2 MB, free: 2.219 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.082e-05/0.279, allocations: 12 kB / 451.2 MB, free: 2.207 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001821/0.2792, allocations: 135.2 kB / 451.4 MB, free: 2.074 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.2793, allocations: 0 / 451.4 MB, free: 2.074 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009732/0.2802, allocations: 48 kB / 451.4 MB, free: 2.027 MB / 282.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.0002177/0.2805, allocations: 115.2 kB / 451.5 MB, free: 1.906 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.2819, allocations: 293.4 kB / 451.8 MB, free: 1.621 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.282, allocations: 0 / 451.8 MB, free: 1.621 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.2821, allocations: 15.92 kB / 451.8 MB, free: 1.605 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.2836, allocations: 211.5 kB / 452 MB, free: 1.402 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0073/0.2909, allocations: 0.6403 MB / 452.7 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.2915, allocations: 0.7842 MB / 453.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.2918, allocations: 23.44 kB / 453.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of SimCode: time 2.084e-06/0.2918, allocations: 0 / 453.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of Templates: time 0.01709/0.3089, allocations: 2.863 MB / 456.3 MB, free: 13.04 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/jenkins1/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