Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",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.001486/0.001486, allocations: 99.84 kB / 16.5 MB, free: 6.641 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.001654/0.001654, allocations: 194.6 kB / 17.42 MB, free: 6.066 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.606/1.606, allocations: 222.9 MB / 241.1 MB, free: 13.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 47.36 kB / 300.1 MB, free: 5.953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1405, allocations: 49.43 MB / 349.5 MB, free: 4.516 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004887/0.1455, allocations: 1.929 MB / 351.4 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002224/0.1478, allocations: 1.114 MB / 352.5 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000222/0.148, allocations: 4 kB / 352.6 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004597/0.1486, allocations: 55.8 kB / 352.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003767/0.149, allocations: 79.72 kB / 352.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009904/0.15, allocations: 232.3 kB / 352.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.1503, allocations: 159.5 kB / 353.1 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.1505, allocations: 29.55 kB / 353.1 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.1506, allocations: 59.7 kB / 353.2 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.1508, allocations: 79.61 kB / 353.2 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.378e-05/0.1508, allocations: 4 kB / 353.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.151, allocations: 63.95 kB / 353.3 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.1512, allocations: 43.84 kB / 353.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1513, allocations: 67.48 kB / 353.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004545/0.1518, allocations: 231.5 kB / 353.6 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.309e-06/0.1518, allocations: 0 / 353.6 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1518, allocations: 0 / 353.6 MB, free: 372 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.1518, allocations: 3.938 kB / 353.6 MB, free: 368 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001037/0.1528, allocations: 0.5234 MB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/0.1529, allocations: 8.031 kB / 354.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.642e-05/0.153, allocations: 42.73 kB / 354.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.651e-05/0.1531, allocations: 28.66 kB / 354.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004438/0.1535, allocations: 283.5 kB / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.1536, allocations: 12.31 kB / 354.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.1536, allocations: 7.938 kB / 354.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.154, allocations: 157.8 kB / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.154, allocations: 4 kB / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.154, allocations: 4 kB / 354.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.1541, allocations: 4 kB / 354.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001416/0.1542, allocations: 31.92 kB / 354.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006481/0.1549, allocations: 390.3 kB / 355.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.1551, allocations: 119.9 kB / 355.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.1553, allocations: 50.5 kB / 355.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.1553, allocations: 0 / 355.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002768/0.1556, allocations: 79.38 kB / 355.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.845e-06/0.1556, allocations: 0 / 355.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004847/0.1561, allocations: 149.5 kB / 355.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.1562, allocations: 170.2 kB / 355.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003976/0.1566, allocations: 334.6 kB / 356 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.1566, allocations: 25.7 kB / 356 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1568, allocations: 128.1 kB / 356.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.167e-05/0.1568, allocations: 15.8 kB / 356.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-05/0.1569, allocations: 29.72 kB / 356.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.157, allocations: 334.8 kB / 356.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.643e-05/0.1571, allocations: 27.98 kB / 356.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.1573, allocations: 78.86 kB / 356.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.1574, allocations: 92.14 kB / 356.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1574, allocations: 0 / 356.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002587/0.1577, allocations: 125.3 kB / 356.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1577, allocations: 4 kB / 356.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1578, allocations: 4 kB / 356.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.1578, allocations: 0 / 356.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.1579, allocations: 28.05 kB / 356.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.1579, allocations: 0 / 356.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.989e-05/0.158, allocations: 12.25 kB / 356.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.1581, allocations: 4 kB / 356.9 MB, free: 12.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001646/0.1582, allocations: 157.8 kB / 357 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.1583, allocations: 65.36 kB / 357.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.637e-05/0.1584, allocations: 29.7 kB / 357.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1584, allocations: 0 / 357.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.1584, allocations: 4.062 kB / 357.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1585, allocations: 7.938 kB / 357.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002401/0.1587, allocations: 233.6 kB / 357.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1587, allocations: 4 kB / 357.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.75e-05/0.1588, allocations: 11.94 kB / 357.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1588, allocations: 0 / 357.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.1588, allocations: 11.98 kB / 357.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.1588, allocations: 3.938 kB / 357.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1588, allocations: 3.984 kB / 357.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.1591, allocations: 170.4 kB / 357.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.1593, allocations: 108.8 kB / 357.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.1593, allocations: 8 kB / 357.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.973e-05/0.1594, allocations: 3.984 kB / 357.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.1595, allocations: 11.94 kB / 357.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.1595, allocations: 7.984 kB / 357.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002711/0.1598, allocations: 241.9 kB / 357.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1598, allocations: 0 / 357.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.1601, allocations: 36 kB / 358 MB, free: 11.55 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 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001731/0.1618, allocations: 1.021 MB / 359 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002648/0.1621, allocations: 71.91 kB / 359.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1621, allocations: 0 / 359.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.52e-05/0.1622, allocations: 31.92 kB / 359.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004635/0.1627, allocations: 68.41 kB / 359.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003415/0.1661, allocations: 2.231 MB / 361.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004704/0.1667, allocations: 0.7361 MB / 362.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001467/0.1668, allocations: 25.8 kB / 362.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.167, allocations: 59.41 kB / 362.2 MB, free: 7.289 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.167, allocations: 0 / 362.2 MB, free: 7.289 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04923/0.2162, allocations: 4.889 MB / 367.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004172/0.2167, allocations: 268.4 kB / 367.4 MB, free: 2.285 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.094/2.31, allocations: 0 / 367.4 MB, free: 2.285 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches