Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.UpSample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001101/0.001101, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 60.38 kB / 307.1 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1276, allocations: 50.52 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003633/0.1313, allocations: 1.756 MB / 359.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1327, allocations: 0.6077 MB / 359.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.1328, allocations: 7.938 kB / 360 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.7e-05/0.1329, allocations: 11.86 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.1331, allocations: 7.875 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005409/0.1337, allocations: 111.6 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.1339, allocations: 95.7 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.134, allocations: 29.44 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.1342, allocations: 43.83 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.39e-05/0.1343, allocations: 51.7 kB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.1343, allocations: 8 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.34e-05/0.1344, allocations: 8 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.823e-05/0.1345, allocations: 27.91 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.693e-05/0.1345, allocations: 51.67 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.1348, allocations: 107.6 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.1348, allocations: 0 / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1348, allocations: 0 / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1348, allocations: 0 / 360.5 MB, free: 11.04 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006713/0.1355, allocations: 435.1 kB / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.1355, allocations: 15.97 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.1356, allocations: 42.73 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.1358, allocations: 28.75 kB / 361 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.1361, allocations: 217.1 kB / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.1361, allocations: 8.375 kB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.1362, allocations: 16.31 kB / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006358/0.1368, allocations: 265.7 kB / 361.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.1368, allocations: 3.938 kB / 361.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.1369, allocations: 4 kB / 361.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1369, allocations: 4 kB / 361.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.137, allocations: 47.97 kB / 361.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005099/0.1375, allocations: 310.3 kB / 361.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.1379, allocations: 139.8 kB / 362 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.138, allocations: 74.8 kB / 362.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.138, allocations: 0 / 362.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.1381, allocations: 50.48 kB / 362.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.362e-06/0.1381, allocations: 3.938 kB / 362.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000488/0.1386, allocations: 165.5 kB / 362.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.1387, allocations: 126.7 kB / 362.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.1389, allocations: 154.2 kB / 362.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.1389, allocations: 25.7 kB / 362.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.211e-05/0.139, allocations: 100.1 kB / 362.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.549e-05/0.1391, allocations: 15.89 kB / 362.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.771e-05/0.1392, allocations: 41.61 kB / 362.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1393, allocations: 326.9 kB / 363.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.784e-05/0.1394, allocations: 27.98 kB / 363.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.1396, allocations: 142.1 kB / 363.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.1398, allocations: 170.8 kB / 363.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1398, allocations: 0 / 363.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00033/0.1402, allocations: 181.2 kB / 363.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.09e-05/0.1402, allocations: 8 kB / 363.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.1402, allocations: 7.938 kB / 363.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.883e-05/0.1403, allocations: 4 kB / 363.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.1404, allocations: 31.92 kB / 363.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.1404, allocations: 8.469 kB / 363.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.1405, allocations: 23.84 kB / 363.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.1406, allocations: 8 kB / 363.7 MB, free: 7.492 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001632/0.1407, allocations: 137.7 kB / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002188/0.141, allocations: 125.7 kB / 363.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.137e-05/0.141, allocations: 16.72 kB / 363.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.141, allocations: 4 kB / 363.9 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.1411, allocations: 3.938 kB / 363.9 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1411, allocations: 3.984 kB / 363.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003196/0.1414, allocations: 193.6 kB / 364.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1414, allocations: 8 kB / 364.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.1415, allocations: 19.98 kB / 364.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.1415, allocations: 4 kB / 364.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.1416, allocations: 7.984 kB / 364.2 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.758e-06/0.1416, allocations: 4 kB / 364.2 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-05/0.1416, allocations: 3.938 kB / 364.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.142, allocations: 252.9 kB / 364.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.1421, allocations: 101 kB / 364.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.1421, allocations: 11.94 kB / 364.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.194e-05/0.1422, allocations: 0 / 364.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.1423, allocations: 7.938 kB / 364.5 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.1423, allocations: 11.98 kB / 364.6 MB, free: 6.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.958e-05/0.1424, allocations: 112.1 kB / 364.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1424, allocations: 0 / 364.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003031/0.1427, allocations: 20 kB / 364.7 MB, free: 6.355 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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0009356/0.1437, allocations: 0.8414 MB / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003057/0.144, allocations: 119.8 kB / 365.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.144, allocations: 3.938 kB / 365.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.155e-05/0.1441, allocations: 15.98 kB / 365.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005414/0.1446, allocations: 83.42 kB / 365.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.1469, allocations: 1.853 MB / 367.6 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000419/0.1474, allocations: 0.7163 MB / 368.3 MB, free: 2.465 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.503e-05/0.1474, allocations: 17.42 kB / 368.3 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.01e-05/0.1475, allocations: 39.42 kB / 368.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1475, allocations: 0 / 368.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2318/0.3793, allocations: 2.672 MB / 371 MB, free: 20.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.164/8.544, allocations: 5.375 kB / 371 MB, free: 20.91 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches