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.001771/0.001771, 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.00141/0.00141, 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.485/1.485, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 46.7 kB / 300.2 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 49.44 MB / 349.7 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003922/0.1169, allocations: 1.929 MB / 351.6 MB, free: 2.738 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.1188, allocations: 1.095 MB / 352.7 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.1189, allocations: 3.938 kB / 352.7 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003708/0.1193, allocations: 59.8 kB / 352.8 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002664/0.1196, allocations: 79.72 kB / 352.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007391/0.1204, allocations: 237.2 kB / 353.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000231/0.1206, allocations: 171.5 kB / 353.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.1207, allocations: 33.47 kB / 353.3 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.1209, allocations: 75.69 kB / 353.4 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.121, allocations: 79.62 kB / 353.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.805e-05/0.121, allocations: 8 kB / 353.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.1211, allocations: 63.95 kB / 353.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.3e-05/0.1212, allocations: 59.83 kB / 353.6 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.483e-05/0.1213, allocations: 87.41 kB / 353.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003014/0.1216, allocations: 223.6 kB / 353.9 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1217, allocations: 3.938 kB / 353.9 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1217, allocations: 0 / 353.9 MB, free: 492 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.699e-06/0.1217, allocations: 0 / 353.9 MB, free: 492 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.0007614/0.1224, allocations: 0.5273 MB / 354.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.1225, allocations: 12.03 kB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.694e-05/0.1225, allocations: 34.75 kB / 354.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.814e-05/0.1226, allocations: 28.66 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.123, allocations: 287.5 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.123, allocations: 4.375 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.167e-05/0.123, allocations: 11.94 kB / 354.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.1234, allocations: 155.6 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1234, allocations: 0 / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.1234, allocations: 4 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1234, allocations: 0 / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001265/0.1236, allocations: 35.91 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005568/0.1241, allocations: 390.3 kB / 355.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.1244, allocations: 115.9 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.644e-05/0.1245, allocations: 46.56 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.1246, allocations: 8 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.1248, allocations: 71.38 kB / 355.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 3.727e-06/0.1249, allocations: 0 / 355.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003971/0.1253, allocations: 161.2 kB / 355.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.814e-05/0.1254, allocations: 158.5 kB / 355.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.1257, allocations: 334.6 kB / 356.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.1257, allocations: 25.7 kB / 356.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.616e-05/0.1258, allocations: 124.1 kB / 356.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.106e-05/0.1259, allocations: 19.8 kB / 356.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.224e-05/0.1259, allocations: 29.7 kB / 356.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1261, allocations: 330.8 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.365e-05/0.1262, allocations: 27.98 kB / 356.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.1263, allocations: 86.78 kB / 356.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.1264, allocations: 96.41 kB / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1265, allocations: 0 / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002255/0.1267, allocations: 117.4 kB / 357.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1267, allocations: 11.94 kB / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1267, allocations: 7.922 kB / 357.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1268, allocations: 0 / 357.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.1269, allocations: 23.98 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.1269, allocations: 8.125 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.814e-05/0.127, allocations: 7.938 kB / 357.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.127, allocations: 3.984 kB / 357.1 MB, free: 12.88 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.0001561/0.1272, allocations: 157.7 kB / 357.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.662e-05/0.1273, allocations: 65.41 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.9e-05/0.1273, allocations: 29.7 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1273, allocations: 0 / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.1274, allocations: 8.062 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1274, allocations: 3.938 kB / 357.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.1276, allocations: 237.6 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1276, allocations: 0 / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.626e-05/0.1277, allocations: 15.92 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.1277, allocations: 4 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.1277, allocations: 0 / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1277, allocations: 0 / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1277, allocations: 4 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.128, allocations: 166.4 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1281, allocations: 112.8 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.1281, allocations: 7.984 kB / 357.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.722e-05/0.1282, allocations: 8.062 kB / 357.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.1283, allocations: 15.92 kB / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.1283, allocations: 4 kB / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002168/0.1285, allocations: 237.9 kB / 358.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1285, allocations: 4 kB / 358.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000275/0.1288, allocations: 39.98 kB / 358.2 MB, free: 11.67 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.001686/0.1305, allocations: 1.012 MB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003122/0.1308, allocations: 83.83 kB / 359.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1309, allocations: 0 / 359.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.614e-05/0.131, allocations: 24.11 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004554/0.1314, allocations: 83.05 kB / 359.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.134, allocations: 2.226 MB / 361.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.1344, allocations: 0.7358 MB / 362.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.1345, allocations: 41.44 kB / 362.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.1346, allocations: 55.42 kB / 362.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1346, allocations: 0 / 362.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.1534, allocations: 5.016 MB / 367.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003274/0.1538, allocations: 256.2 kB / 367.7 MB, free: 2.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.185/2.339, allocations: 3.234 kB / 367.7 MB, free: 2.262 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