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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001131/0.001131, allocations: 191 kB / 18.63 MB, free: 4.375 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.438/1.438, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 46.92 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1154, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003672/0.1191, allocations: 1.866 MB / 353.4 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.121, allocations: 1.118 MB / 354.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.1212, allocations: 4 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003241/0.1215, allocations: 67.66 kB / 354.6 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003021/0.1218, allocations: 91.58 kB / 354.7 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007017/0.1225, allocations: 266.2 kB / 354.9 MB, free: 272 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.1228, allocations: 159.5 kB / 355.1 MB, free: 112 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1229, allocations: 29.53 kB / 355.1 MB, free: 84 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.97e-05/0.123, allocations: 71.7 kB / 355.2 MB, free: 12 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1232, allocations: 79.67 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.1232, allocations: 8 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/0.1233, allocations: 67.89 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-05/0.1234, allocations: 51.84 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.509e-05/0.1235, allocations: 75.47 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003301/0.1239, allocations: 239.2 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1239, allocations: 0 / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1239, allocations: 0 / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.1239, allocations: 0 / 355.7 MB, free: 15.5 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.0007481/0.1247, allocations: 0.5311 MB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.1247, allocations: 11.89 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.229e-05/0.1248, allocations: 28.64 kB / 356.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.1252, allocations: 287.6 kB / 356.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.1253, allocations: 8.375 kB / 356.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.165e-05/0.1253, allocations: 8.125 kB / 356.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003494/0.1256, allocations: 155.6 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1257, allocations: 0 / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.1257, allocations: 0 / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1257, allocations: 0 / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.1258, allocations: 43.91 kB / 356.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005516/0.1264, allocations: 386.4 kB / 357.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.1267, allocations: 119.9 kB / 357.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.927e-05/0.1268, allocations: 54.5 kB / 357.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.1268, allocations: 3.938 kB / 357.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/0.127, allocations: 75.38 kB / 357.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 4.168e-06/0.127, allocations: 7.984 kB / 357.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004126/0.1274, allocations: 153.2 kB / 357.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/0.1275, allocations: 170.4 kB / 357.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.1279, allocations: 318.7 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.1279, allocations: 33.7 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.128, allocations: 124.1 kB / 358.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.128, allocations: 19.8 kB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.1281, allocations: 29.72 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1282, allocations: 334.8 kB / 358.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.122e-05/0.1283, allocations: 27.98 kB / 358.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.1284, allocations: 86.78 kB / 358.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.1286, allocations: 84.22 kB / 358.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1286, allocations: 0 / 358.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002246/0.1288, allocations: 129.3 kB / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.1288, allocations: 4 kB / 358.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1288, allocations: 0 / 358.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1289, allocations: 4 kB / 358.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.129, allocations: 28.05 kB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.129, allocations: 0 / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.437e-05/0.1291, allocations: 7.938 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.1291, allocations: 8 kB / 358.9 MB, free: 11.93 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.0001301/0.1292, allocations: 162.5 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-05/0.1293, allocations: 65.36 kB / 359.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.168e-05/0.1294, allocations: 25.7 kB / 359.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1294, allocations: 4 kB / 359.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1294, allocations: 4.062 kB / 359.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1294, allocations: 11.86 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.1296, allocations: 237.6 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1296, allocations: 0 / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.705e-05/0.1297, allocations: 12 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1297, allocations: 0 / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.1297, allocations: 7.984 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1297, allocations: 0 / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1297, allocations: 7.922 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.13, allocations: 178.3 kB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.1301, allocations: 108.8 kB / 359.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.1302, allocations: 0 / 359.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.706e-05/0.1302, allocations: 11.98 kB / 359.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.1303, allocations: 7.984 kB / 359.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.1303, allocations: 11.94 kB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.1305, allocations: 241.9 kB / 360 MB, free: 10.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1305, allocations: 0 / 360 MB, free: 10.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002608/0.1308, allocations: 32 kB / 360 MB, free: 10.71 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.0009557/0.1318, allocations: 423.3 kB / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002312/0.132, allocations: 71.91 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.132, allocations: 0 / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.283e-05/0.1321, allocations: 36.17 kB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.1325, allocations: 71.38 kB / 360.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005942/0.1331, allocations: 361.2 kB / 360.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.1334, allocations: 0.7438 MB / 361.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.448e-05/0.1335, allocations: 25.53 kB / 361.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.1335, allocations: 23.44 kB / 361.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1336, allocations: 0 / 361.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of Templates: time 0.006469/0.14, allocations: 2.804 MB / 364.5 MB, free: 6.297 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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