Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 104.1 kB / 16.62 MB, free: 6.809 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.001619/0.001619, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.634/1.634, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 47.61 kB / 300.2 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1303, allocations: 49.45 MB / 349.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003645/0.134, allocations: 2.01 MB / 351.7 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.1361, allocations: 1.169 MB / 352.9 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.1363, allocations: 3.938 kB / 352.9 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003818/0.1367, allocations: 67.78 kB / 352.9 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003204/0.137, allocations: 83.66 kB / 353 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009095/0.1379, allocations: 278.9 kB / 353.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003097/0.1383, allocations: 203.5 kB / 353.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.1384, allocations: 53.62 kB / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.1386, allocations: 99.56 kB / 353.6 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.1388, allocations: 99.59 kB / 353.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.1388, allocations: 12 kB / 353.7 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.139, allocations: 71.95 kB / 353.8 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.566e-05/0.1391, allocations: 67.7 kB / 353.9 MB, free: 464 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.1392, allocations: 103.3 kB / 354 MB, free: 360 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003878/0.1396, allocations: 283.4 kB / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1396, allocations: 0 / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1396, allocations: 0 / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.1396, allocations: 0 / 354.3 MB, free: 76 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009339/0.1406, allocations: 0.5778 MB / 354.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1406, allocations: 11.97 kB / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.27e-05/0.1407, allocations: 46.73 kB / 354.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.593e-05/0.1408, allocations: 32.56 kB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.1411, allocations: 311.4 kB / 355.2 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.1412, allocations: 12.38 kB / 355.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.435e-05/0.1412, allocations: 15.94 kB / 355.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005962/0.1418, allocations: 320.9 kB / 355.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.1418, allocations: 0 / 355.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.1419, allocations: 8 kB / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.1419, allocations: 0 / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001743/0.142, allocations: 71.89 kB / 355.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.1426, allocations: 414.2 kB / 356.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.143, allocations: 199.9 kB / 356.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.1431, allocations: 86.78 kB / 356.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.1432, allocations: 15.91 kB / 356.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001608/0.1434, allocations: 75.33 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.315e-06/0.1434, allocations: 8 kB / 356.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005467/0.1439, allocations: 249.3 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.1441, allocations: 174.2 kB / 356.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.1444, allocations: 346.8 kB / 357.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.1445, allocations: 29.7 kB / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.969e-05/0.1446, allocations: 128.7 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.95e-05/0.1446, allocations: 35.67 kB / 357.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.939e-05/0.1447, allocations: 57.84 kB / 357.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1448, allocations: 338.8 kB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.42e-05/0.1449, allocations: 40.44 kB / 357.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.1451, allocations: 198.9 kB / 358 MB, free: 11.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002788/0.1454, allocations: 207.2 kB / 358.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1454, allocations: 3.938 kB / 358.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003855/0.1458, allocations: 233 kB / 358.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1458, allocations: 8 kB / 358.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.1459, allocations: 4 kB / 358.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.1459, allocations: 4.531 kB / 358.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.146, allocations: 55.84 kB / 358.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.1461, allocations: 4.312 kB / 358.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.1462, allocations: 19.89 kB / 358.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.1462, allocations: 11.98 kB / 358.5 MB, free: 11.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.0001674/0.1464, allocations: 184.5 kB / 358.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/0.1466, allocations: 133.3 kB / 358.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.422e-05/0.1467, allocations: 38.14 kB / 358.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.713e-05/0.1467, allocations: 11.94 kB / 358.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1467, allocations: 0 / 358.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.1467, allocations: 7.984 kB / 358.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002164/0.147, allocations: 253.5 kB / 359.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.147, allocations: 3.938 kB / 359.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.1471, allocations: 31.98 kB / 359.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1471, allocations: 0 / 359.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.1471, allocations: 7.984 kB / 359.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.1472, allocations: 8 kB / 359.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1472, allocations: 0 / 359.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003736/0.1475, allocations: 253.4 kB / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.1477, allocations: 128.6 kB / 359.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.1477, allocations: 8 kB / 359.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.854e-05/0.1478, allocations: 11.98 kB / 359.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.1479, allocations: 7.938 kB / 359.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.1479, allocations: 11.98 kB / 359.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003078/0.1482, allocations: 253.9 kB / 359.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1482, allocations: 0 / 359.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.1485, allocations: 48 kB / 359.9 MB, free: 9.879 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001715/0.1503, allocations: 1.191 MB / 361.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000345/0.1506, allocations: 163.6 kB / 361.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1506, allocations: 5.062 kB / 361.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.046e-05/0.1507, allocations: 31.92 kB / 361.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.1512, allocations: 118.3 kB / 361.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.1533, allocations: 1.539 MB / 362.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.1536, allocations: 0.7717 MB / 363.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.1537, allocations: 38.5 kB / 363.8 MB, free: 6.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.1538, allocations: 75.41 kB / 363.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of SimCode: time 1.944e-06/0.1538, allocations: 0 / 363.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01671/0.1705, allocations: 6.027 MB / 369.9 MB, free: 76 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.2502/0.4208, allocations: 251.3 kB / 370.1 MB, free: 28.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.199/2.62, allocations: 0 / 370.1 MB, free: 28.93 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches