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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 100.9 kB / 16.45 MB, free: 6.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001484, allocations: 190 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.846/1.846, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08109/0.08109, allocations: 12.59 MB / 283.2 MB, free: 15.38 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 93.44 kB / 394.2 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1121, allocations: 49.4 MB / 443.6 MB, free: 476 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2): time 0.004035/0.1162, allocations: 1.742 MB / 445.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.1177, allocations: 0.6554 MB / 446 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.1178, allocations: 7.938 kB / 446 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.118, allocations: 15.8 kB / 446 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.1183, allocations: 47.7 kB / 446 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004184/0.1187, allocations: 127.7 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.119, allocations: 159.6 kB / 446.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.1191, allocations: 37.45 kB / 446.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.1193, allocations: 71.7 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.1196, allocations: 107.6 kB / 446.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.906e-05/0.1196, allocations: 16 kB / 446.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.646e-05/0.1196, allocations: 16 kB / 446.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.015e-05/0.1197, allocations: 63.81 kB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.1199, allocations: 91.45 kB / 446.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.1201, allocations: 191.3 kB / 446.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.1201, allocations: 4 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1201, allocations: 0 / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.1201, allocations: 0 / 446.9 MB, free: 13.11 MB / 334.1 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.0008409/0.121, allocations: 0.5179 MB / 447.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.121, allocations: 12.03 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.402e-05/0.1211, allocations: 24.66 kB / 447.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.1214, allocations: 251.8 kB / 447.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/0.1215, allocations: 12.38 kB / 447.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.248e-05/0.1215, allocations: 12.38 kB / 447.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.1228, allocations: 0.6303 MB / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1228, allocations: 0 / 448.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.1228, allocations: 7.984 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-05/0.1229, allocations: 20 kB / 448.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.1233, allocations: 187.8 kB / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006252/0.1239, allocations: 374.2 kB / 448.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000503/0.1245, allocations: 247.6 kB / 449.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.1248, allocations: 154.6 kB / 449.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.333e-05/0.1248, allocations: 4 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.1249, allocations: 42.55 kB / 449.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.733e-06/0.1249, allocations: 4 kB / 449.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.0009037/0.1258, allocations: 415.1 kB / 449.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.1259, allocations: 146.8 kB / 449.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.1261, allocations: 170.4 kB / 450.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.1262, allocations: 33.7 kB / 450.1 MB, free: 9.637 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.425e-05/0.1263, allocations: 105 kB / 450.2 MB, free: 9.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.1263, allocations: 39.72 kB / 450.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-05/0.1264, allocations: 74.14 kB / 450.3 MB, free: 9.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.1266, allocations: 334.8 kB / 450.7 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.1267, allocations: 72.83 kB / 450.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.127, allocations: 322.7 kB / 451.1 MB, free: 8.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004751/0.1275, allocations: 420.9 kB / 451.5 MB, free: 8.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.1275, allocations: 4 kB / 451.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005925/0.1281, allocations: 405.4 kB / 451.9 MB, free: 7.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.1282, allocations: 11.94 kB / 451.9 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.1282, allocations: 8 kB / 451.9 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.1282, allocations: 12 kB / 451.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.1285, allocations: 83.84 kB / 452 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.121e-05/0.1285, allocations: 19.92 kB / 452 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.1287, allocations: 31.69 kB / 452 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/0.1287, allocations: 24 kB / 452.1 MB, free: 7.441 MB / 334.1 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 ($CLKPRE.superSampleIpo.ticks,superSampleIpo.ticks,superSampleIpo.usedFactor,$CLKPRE.FIR1.first,FIR1.first,$CLKPRE.FIR2.first,FIR2.first,$CLKPRE.upSample.b_super,upSample.b_super,$CLKPRE.superSampleIpo.first,superSampleIpo.first,$CLKPRE.upSample.b,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002072/0.1289, allocations: 181.9 kB / 452.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004775/0.1294, allocations: 293.3 kB / 452.5 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.771e-05/0.1295, allocations: 34.64 kB / 452.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1295, allocations: 8 kB / 452.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1295, allocations: 4 kB / 452.6 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1295, allocations: 7.922 kB / 452.6 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/0.1298, allocations: 249.2 kB / 452.8 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1298, allocations: 0 / 452.8 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.1301, allocations: 63.91 kB / 452.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.1301, allocations: 4 kB / 452.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.1301, allocations: 7.984 kB / 452.9 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.1301, allocations: 4 kB / 452.9 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1301, allocations: 0 / 452.9 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006234/0.1308, allocations: 448.8 kB / 453.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.1309, allocations: 132.8 kB / 453.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.722e-05/0.131, allocations: 16 kB / 453.5 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.1311, allocations: 11.98 kB / 453.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.1312, allocations: 4 kB / 453.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/0.1312, allocations: 15.98 kB / 453.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.401e-05/0.1313, allocations: 127.2 kB / 453.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1313, allocations: 0 / 453.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003699/0.1317, allocations: 48 kB / 453.7 MB, free: 5.711 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001643/0.1318, allocations: 123.1 kB / 453.8 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000518/0.1324, allocations: 301.8 kB / 454.1 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1324, allocations: 0 / 454.1 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.555e-05/0.1324, allocations: 4 kB / 454.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006851/0.1331, allocations: 216.1 kB / 454.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.1343, allocations: 0.5305 MB / 454.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/0.1347, allocations: 0.784 MB / 455.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.984e-05/0.1348, allocations: 26.28 kB / 455.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.626e-05/0.1349, allocations: 23.44 kB / 455.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1349, allocations: 0 / 455.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of Templates: time 0.006055/0.1409, allocations: 2.747 MB / 458.4 MB, free: 0.8984 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches