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.001237/0.001237, allocations: 101.6 kB / 16.5 MB, free: 6.688 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.001211/0.001211, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.495/1.495, allocations: 222.9 MB / 241.1 MB, free: 15.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001083/0.001083, allocations: 42.88 kB / 300.1 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1249, allocations: 49.46 MB / 349.5 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003681/0.1287, allocations: 2.003 MB / 351.5 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.1305, allocations: 1.169 MB / 352.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.1307, allocations: 7.938 kB / 352.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003292/0.131, allocations: 71.72 kB / 352.8 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002123/0.1312, allocations: 79.73 kB / 352.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007204/0.132, allocations: 266.8 kB / 353.1 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002487/0.1322, allocations: 199.5 kB / 353.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.1324, allocations: 41.67 kB / 353.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.1325, allocations: 91.55 kB / 353.4 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.1327, allocations: 95.59 kB / 353.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.1327, allocations: 15.92 kB / 353.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.1329, allocations: 59.92 kB / 353.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.723e-05/0.133, allocations: 63.8 kB / 353.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.658e-05/0.1331, allocations: 83.36 kB / 353.7 MB, free: 440 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003166/0.1334, allocations: 279.3 kB / 354 MB, free: 160 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1334, allocations: 4 kB / 354 MB, free: 156 kB / 286.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1334, allocations: 0 / 354 MB, free: 156 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1334, allocations: 0 / 354 MB, free: 156 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.0008127/0.1342, allocations: 0.5779 MB / 354.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1343, allocations: 8.031 kB / 354.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.114e-05/0.1343, allocations: 54.73 kB / 354.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.34e-05/0.1344, allocations: 24.66 kB / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.1348, allocations: 311.3 kB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.1348, allocations: 16.36 kB / 355 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.1348, allocations: 15.94 kB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006009/0.1354, allocations: 323.1 kB / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1355, allocations: 0 / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.1355, allocations: 0 / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1355, allocations: 8 kB / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.1357, allocations: 71.89 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005433/0.1362, allocations: 414.2 kB / 355.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.1366, allocations: 199.9 kB / 356 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.1368, allocations: 94.53 kB / 356.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.1368, allocations: 0 / 356.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001763/0.137, allocations: 87.31 kB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.137, allocations: 0 / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005458/0.1376, allocations: 253.3 kB / 356.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.1377, allocations: 170.2 kB / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.1381, allocations: 350.8 kB / 356.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.1381, allocations: 29.7 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.613e-05/0.1382, allocations: 132.7 kB / 357.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/0.1382, allocations: 27.7 kB / 357.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.857e-05/0.1383, allocations: 49.94 kB / 357.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1385, allocations: 342.8 kB / 357.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.934e-05/0.1386, allocations: 40.45 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.1388, allocations: 187.1 kB / 357.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/0.1392, allocations: 215.2 kB / 357.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.1392, allocations: 8 kB / 358 MB, free: 11.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003955/0.1396, allocations: 232.9 kB / 358.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.1396, allocations: 12.47 kB / 358.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.1396, allocations: 8 kB / 358.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.1396, allocations: 8 kB / 358.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.1398, allocations: 39.86 kB / 358.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.1398, allocations: 4 kB / 358.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.14, allocations: 23.83 kB / 358.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.14, allocations: 16 kB / 358.3 MB, free: 11.43 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.0001883/0.1402, allocations: 180.5 kB / 358.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.1404, allocations: 145.6 kB / 358.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.098e-05/0.1405, allocations: 33.73 kB / 358.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1405, allocations: 3.938 kB / 358.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1405, allocations: 4 kB / 358.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1405, allocations: 0 / 358.6 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002473/0.1408, allocations: 265.4 kB / 358.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1408, allocations: 4 kB / 358.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.1409, allocations: 23.98 kB / 358.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1409, allocations: 4 kB / 358.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.1409, allocations: 4 kB / 358.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.1409, allocations: 19.86 kB / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.141, allocations: 0 / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003888/0.1413, allocations: 238.5 kB / 359.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.1415, allocations: 128.6 kB / 359.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/0.1415, allocations: 8 kB / 359.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.418e-05/0.1416, allocations: 4 kB / 359.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/0.1417, allocations: 19.92 kB / 359.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.1417, allocations: 11.98 kB / 359.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002297/0.1419, allocations: 245.9 kB / 359.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1419, allocations: 0 / 359.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003012/0.1423, allocations: 51.98 kB / 359.7 MB, free: 9.961 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.001662/0.1439, allocations: 1.193 MB / 360.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000317/0.1443, allocations: 158 kB / 361 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.1443, allocations: 8.062 kB / 361 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.686e-05/0.1444, allocations: 23.98 kB / 361 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.1448, allocations: 125 kB / 361.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/0.1469, allocations: 1.533 MB / 362.7 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.1473, allocations: 0.7676 MB / 363.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.141e-05/0.1474, allocations: 34.28 kB / 363.5 MB, free: 6.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.1475, allocations: 79.41 kB / 363.6 MB, free: 6.043 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1475, allocations: 0 / 363.6 MB, free: 6.043 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0282/0.1757, allocations: 5.849 MB / 369.4 MB, free: 352 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/0.1759, allocations: 257.4 kB / 369.7 MB, free: 96 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.178/2.354, allocations: 0 / 369.7 MB, free: 96 kB / 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