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.001212/0.001212, allocations: 88.66 kB / 16.65 MB, free: 6.535 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.001379/0.001379, allocations: 175.4 kB / 17.56 MB, free: 6.184 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.65/1.65, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003192/0.0003193, allocations: 8 kB / 301.5 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1283, allocations: 50.41 MB / 351.9 MB, free: 3.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003341/0.1316, allocations: 1.582 MB / 353.5 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.1344, allocations: 1.08 MB / 354.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002429/0.1347, allocations: 3.938 kB / 354.6 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004684/0.1352, allocations: 63.78 kB / 354.7 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003865/0.1356, allocations: 75.67 kB / 354.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1366, allocations: 228.3 kB / 355 MB, free: 304 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.137, allocations: 163.5 kB / 355.1 MB, free: 140 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.1371, allocations: 33.53 kB / 355.2 MB, free: 108 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.1373, allocations: 63.64 kB / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.1374, allocations: 71.67 kB / 355.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.1375, allocations: 8 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.1376, allocations: 47.98 kB / 355.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.1378, allocations: 55.75 kB / 355.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.1379, allocations: 89.19 kB / 355.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.1382, allocations: 219.5 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1383, allocations: 0 / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1383, allocations: 0 / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.1383, allocations: 4 kB / 355.7 MB, free: 15.55 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008399/0.1391, allocations: 0.4923 MB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.481e-05/0.1392, allocations: 20.02 kB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.148e-05/0.1393, allocations: 38.69 kB / 356.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.37e-05/0.1393, allocations: 24.66 kB / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.1398, allocations: 283.6 kB / 356.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.1398, allocations: 384 / 356.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/0.1398, allocations: 19.88 kB / 356.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.1403, allocations: 151.6 kB / 356.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.1403, allocations: 7.938 kB / 356.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.1403, allocations: 0 / 356.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.1404, allocations: 0 / 356.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.1405, allocations: 35.98 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007171/0.1412, allocations: 378.4 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.1415, allocations: 115.9 kB / 357.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.1417, allocations: 50.56 kB / 357.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-05/0.1417, allocations: 8.062 kB / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002972/0.142, allocations: 83.22 kB / 357.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.733e-06/0.142, allocations: 0 / 357.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004749/0.1425, allocations: 153.4 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.1427, allocations: 158.2 kB / 357.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004815/0.1432, allocations: 334.5 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.1432, allocations: 29.7 kB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.1434, allocations: 120.1 kB / 358.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.491e-05/0.1434, allocations: 19.8 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.1434, allocations: 17.97 kB / 358.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.1437, allocations: 338.8 kB / 358.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.87e-05/0.1437, allocations: 23.98 kB / 358.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.1439, allocations: 82.86 kB / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.144, allocations: 88.41 kB / 358.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.144, allocations: 0 / 358.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002429/0.1443, allocations: 133.3 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1443, allocations: 4 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.1443, allocations: 4.062 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.1444, allocations: 8 kB / 358.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.1445, allocations: 19.98 kB / 358.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.1445, allocations: 0 / 358.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.749e-05/0.1446, allocations: 11.89 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.1446, allocations: 7.984 kB / 358.9 MB, free: 11.99 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.0001613/0.1448, allocations: 162.6 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.238e-05/0.1449, allocations: 57.52 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.352e-05/0.1449, allocations: 33.77 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1449, allocations: 0 / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.145, allocations: 3.938 kB / 359.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.145, allocations: 3.938 kB / 359.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.1452, allocations: 237.5 kB / 359.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.1452, allocations: 7.984 kB / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.002e-05/0.1453, allocations: 8 kB / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1453, allocations: 0 / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.1453, allocations: 4 kB / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1453, allocations: 0 / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1453, allocations: 0 / 359.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/0.1456, allocations: 170.4 kB / 359.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.1457, allocations: 112.9 kB / 359.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.319e-05/0.1458, allocations: 4 kB / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/0.1458, allocations: 7.984 kB / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.1459, allocations: 11.92 kB / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.1459, allocations: 8 kB / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002457/0.1462, allocations: 241.9 kB / 360 MB, free: 10.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1462, allocations: 0 / 360 MB, free: 10.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.1465, allocations: 36 kB / 360 MB, free: 10.8 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.001675/0.1482, allocations: 1.025 MB / 361 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000245/0.1484, allocations: 71.91 kB / 361.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1484, allocations: 0 / 361.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.231e-05/0.1485, allocations: 23.98 kB / 361.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.1491, allocations: 77.05 kB / 361.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.1521, allocations: 2.236 MB / 363.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.1526, allocations: 0.74 MB / 364.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.1527, allocations: 29.52 kB / 364.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.1528, allocations: 59.41 kB / 364.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of SimCode: time 8.81e-07/0.1528, allocations: 0 / 364.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.1695, allocations: 4.685 MB / 368.9 MB, free: 2 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.1698, allocations: 263.3 kB / 369.2 MB, free: 1.738 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.275/2.445, allocations: 0 / 369.2 MB, free: 1.738 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