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.0009258/0.000926, allocations: 90.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002121/0.0002122, allocations: 8 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1024, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample2): time 0.002032/0.1045, allocations: 1.476 MB / 360.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.1059, allocations: 0.6546 MB / 361.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.1061, allocations: 3.938 kB / 361.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.1063, allocations: 11.92 kB / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.1066, allocations: 35.78 kB / 361.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.1071, allocations: 123.7 kB / 361.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.1073, allocations: 151.6 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.1075, allocations: 33.52 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.1077, allocations: 71.69 kB / 361.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/0.108, allocations: 99.64 kB / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.388e-05/0.108, allocations: 8 kB / 362 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.638e-05/0.1081, allocations: 8 kB / 362 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.683e-05/0.1082, allocations: 55.81 kB / 362.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1083, allocations: 109.2 kB / 362.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.1086, allocations: 207.4 kB / 362.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1086, allocations: 0 / 362.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1086, allocations: 0 / 362.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1086, allocations: 0 / 362.4 MB, free: 10.16 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.0008035/0.1094, allocations: 486.6 kB / 362.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1095, allocations: 12.03 kB / 362.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.183e-05/0.1095, allocations: 46.73 kB / 362.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.1097, allocations: 44.64 kB / 363 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.11, allocations: 243.8 kB / 363.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.11, allocations: 20.38 kB / 363.2 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.1101, allocations: 24.3 kB / 363.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.1111, allocations: 0.6301 MB / 363.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1112, allocations: 0 / 363.9 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.1112, allocations: 4 kB / 363.9 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.744e-05/0.1112, allocations: 15.98 kB / 363.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003927/0.1116, allocations: 187.8 kB / 364.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004962/0.1121, allocations: 366.3 kB / 364.4 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004393/0.1126, allocations: 255.5 kB / 364.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.1129, allocations: 162.6 kB / 364.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.416e-05/0.1129, allocations: 20.06 kB / 364.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.1129, allocations: 34.56 kB / 364.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.623e-06/0.1129, allocations: 0 / 364.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.0008173/0.1138, allocations: 422 kB / 365.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.1139, allocations: 138.7 kB / 365.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.1141, allocations: 178.6 kB / 365.6 MB, free: 6.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.1141, allocations: 29.7 kB / 365.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.416e-05/0.1142, allocations: 101.1 kB / 365.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.226e-05/0.1142, allocations: 51.52 kB / 365.8 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/0.1143, allocations: 41.7 kB / 365.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1144, allocations: 338.8 kB / 366.2 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.1145, allocations: 80.84 kB / 366.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.1148, allocations: 330.7 kB / 366.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.1153, allocations: 413 kB / 367 MB, free: 5.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.1153, allocations: 4 kB / 367 MB, free: 5.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005848/0.1159, allocations: 409.3 kB / 367.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1159, allocations: 8 kB / 367.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.1159, allocations: 12.08 kB / 367.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.116, allocations: 12 kB / 367.4 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.1162, allocations: 83.78 kB / 367.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/0.1162, allocations: 19.97 kB / 367.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.1164, allocations: 36.12 kB / 367.5 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.694e-05/0.1164, allocations: 27.94 kB / 367.6 MB, free: 4.434 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.0001952/0.1166, allocations: 191.4 kB / 367.8 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004829/0.1171, allocations: 290.3 kB / 368 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.401e-05/0.1172, allocations: 30.66 kB / 368.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.1172, allocations: 4 kB / 368.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1173, allocations: 4 kB / 368.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.1173, allocations: 3.984 kB / 368.1 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.1175, allocations: 253.2 kB / 368.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.1175, allocations: 4 kB / 368.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/0.1178, allocations: 63.89 kB / 368.4 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.1178, allocations: 4 kB / 368.4 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1178, allocations: 15.94 kB / 368.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.1178, allocations: 4 kB / 368.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1178, allocations: 0 / 368.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006169/0.1185, allocations: 447.9 kB / 368.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.1186, allocations: 132.7 kB / 369 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.736e-05/0.1186, allocations: 15.98 kB / 369 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.1188, allocations: 12 kB / 369 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.1188, allocations: 7.984 kB / 369 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.1189, allocations: 12 kB / 369 MB, free: 2.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.264e-05/0.119, allocations: 135.2 kB / 369.2 MB, free: 2.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.119, allocations: 0 / 369.2 MB, free: 2.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.1194, allocations: 48 kB / 369.2 MB, free: 2.688 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.001179/0.1205, allocations: 1.186 MB / 370.4 MB, free: 1.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004851/0.121, allocations: 285.1 kB / 370.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1211, allocations: 0 / 370.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.455e-05/0.1211, allocations: 19.92 kB / 370.7 MB, free: 1.172 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006675/0.1218, allocations: 210 kB / 370.9 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1745/0.2963, allocations: 3.042 MB / 373.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.2966, allocations: 0.7797 MB / 374.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.765e-05/0.2967, allocations: 23.83 kB / 374.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.2969, allocations: 71.66 kB / 374.8 MB, free: 16.17 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2969, allocations: 0 / 374.8 MB, free: 16.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.3132, allocations: 4.604 MB / 379.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/0.3134, allocations: 223.5 kB / 379.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.115, allocations: 0 / 379.6 MB, free: 15.63 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