Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002036/0.002036, allocations: 103 kB / 17.32 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00205/0.00205, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.545/1.545, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 63.8 kB / 306.6 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1087, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.003711/0.1125, allocations: 1.827 MB / 358.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.1138, allocations: 0.6623 MB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001847/0.1141, allocations: 7.938 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002/0.1143, allocations: 11.86 kB / 359.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002908/0.1146, allocations: 35.84 kB / 359.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005639/0.1152, allocations: 123 kB / 359.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.1154, allocations: 151.6 kB / 359.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.1156, allocations: 41.47 kB / 359.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.1158, allocations: 87.69 kB / 360 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002356/0.116, allocations: 99.64 kB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-05/0.1161, allocations: 16 kB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.352e-05/0.1162, allocations: 23.98 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.447e-05/0.1163, allocations: 59.81 kB / 360.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.1164, allocations: 91.47 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.1167, allocations: 215.5 kB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1167, allocations: 0 / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1167, allocations: 4 kB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1167, allocations: 0 / 360.5 MB, free: 10.85 MB / 302.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.00088/0.1176, allocations: 0.5063 MB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1177, allocations: 8.031 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.138e-05/0.1177, allocations: 58.67 kB / 361.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001731/0.1179, allocations: 40.55 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002766/0.1182, allocations: 247.9 kB / 361.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.081e-05/0.1182, allocations: 12.38 kB / 361.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.1183, allocations: 20.38 kB / 361.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.1194, allocations: 0.6223 MB / 362 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1194, allocations: 7.969 kB / 362 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.1194, allocations: 11.98 kB / 362.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.413e-05/0.1195, allocations: 8 kB / 362.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003813/0.1198, allocations: 183.8 kB / 362.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.1203, allocations: 370.2 kB / 362.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.1208, allocations: 255.6 kB / 362.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.121, allocations: 154.5 kB / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.1211, allocations: 16 kB / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.1211, allocations: 30.56 kB / 363 MB, free: 8.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.653e-06/0.1211, allocations: 0 / 363 MB, free: 8.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008717/0.122, allocations: 421.8 kB / 363.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.1221, allocations: 142.6 kB / 363.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.1223, allocations: 178.8 kB / 363.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.1223, allocations: 29.7 kB / 363.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.36e-05/0.1224, allocations: 97.14 kB / 363.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.028e-05/0.1225, allocations: 51.53 kB / 363.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.1226, allocations: 74.03 kB / 364 MB, free: 7.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1227, allocations: 338.8 kB / 364.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.1228, allocations: 72.83 kB / 364.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.1231, allocations: 330.7 kB / 364.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004311/0.1236, allocations: 405 kB / 365.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.1236, allocations: 7.984 kB / 365.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006279/0.1242, allocations: 404.9 kB / 365.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1243, allocations: 11.94 kB / 365.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.1243, allocations: 11.98 kB / 365.6 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.1243, allocations: 12.81 kB / 365.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.1246, allocations: 87.78 kB / 365.7 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.895e-05/0.1246, allocations: 19.94 kB / 365.7 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.1248, allocations: 31.83 kB / 365.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.1248, allocations: 24 kB / 365.7 MB, free: 5.094 MB / 302.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.000189/0.125, allocations: 183.4 kB / 365.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004964/0.1255, allocations: 294.2 kB / 366.2 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.048e-05/0.1256, allocations: 42.58 kB / 366.2 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.1256, allocations: 4 kB / 366.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.1256, allocations: 8 kB / 366.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1256, allocations: 0 / 366.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.1259, allocations: 249.2 kB / 366.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1259, allocations: 0 / 366.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.1262, allocations: 63.91 kB / 366.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.1262, allocations: 0 / 366.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.1262, allocations: 11.98 kB / 366.6 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.1262, allocations: 4.391 kB / 366.6 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1262, allocations: 0 / 366.6 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.1268, allocations: 439.7 kB / 367 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.127, allocations: 136.6 kB / 367.1 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.169e-05/0.127, allocations: 16 kB / 367.2 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.1272, allocations: 11.98 kB / 367.2 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.286e-05/0.1272, allocations: 4 kB / 367.2 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.1273, allocations: 15.98 kB / 367.2 MB, free: 3.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.22e-05/0.1273, allocations: 127.2 kB / 367.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1274, allocations: 0 / 367.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004286/0.1278, allocations: 48 kB / 367.4 MB, free: 3.367 MB / 302.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.001296/0.1291, allocations: 1.196 MB / 368.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005991/0.1297, allocations: 341.8 kB / 368.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1297, allocations: 0 / 368.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.921e-05/0.1298, allocations: 11.92 kB / 368.9 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006721/0.1304, allocations: 211.8 kB / 369.1 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2283/0.3587, allocations: 3.013 MB / 372.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006293/0.3594, allocations: 0.7801 MB / 372.9 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.3596, allocations: 22.17 kB / 372.9 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.3599, allocations: 74.5 kB / 373 MB, free: 17.99 MB / 302.1 MB Notification: Performance of SimCode: time 2.765e-06/0.3599, allocations: 0 / 373 MB, free: 17.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.385, allocations: 4.872 MB / 377.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.3853, allocations: 219.8 kB / 378.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.229/2.615, allocations: 4.938 kB / 378.1 MB, free: 17.38 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2_fmu --startTime=0 --stopTime=0.06 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample2/UpSample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches