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.001279/0.001279, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001519/0.00152, allocations: 181.3 kB / 17.2 MB, free: 5.914 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.564/1.564, allocations: 223.2 MB / 241.1 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.0002872, allocations: 5.625 kB / 300.7 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 50.43 MB / 351.1 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002671/0.1164, allocations: 1.545 MB / 352.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.1183, allocations: 1.002 MB / 353.7 MB, free: 9.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.1185, allocations: 3.938 kB / 353.7 MB, free: 9.285 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003745/0.1189, allocations: 51.86 kB / 353.7 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003033/0.1192, allocations: 79.69 kB / 353.8 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008859/0.1201, allocations: 218.4 kB / 354 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002589/0.1204, allocations: 107.7 kB / 354.1 MB, free: 8.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.1205, allocations: 21.84 kB / 354.2 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1207, allocations: 63.73 kB / 354.2 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.1208, allocations: 63.7 kB / 354.3 MB, free: 8.695 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.1208, allocations: 4 kB / 354.3 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.121, allocations: 39.97 kB / 354.3 MB, free: 8.652 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.63e-05/0.1211, allocations: 51.81 kB / 354.4 MB, free: 8.602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.081e-05/0.1212, allocations: 49.64 kB / 354.4 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.1214, allocations: 167.6 kB / 354.6 MB, free: 8.383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1214, allocations: 11.94 kB / 354.6 MB, free: 8.371 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1214, allocations: 0 / 354.6 MB, free: 8.371 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1215, allocations: 0 / 354.6 MB, free: 8.371 MB / 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.0008394/0.1223, allocations: 496 kB / 355.1 MB, free: 7.832 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1224, allocations: 12.03 kB / 355.1 MB, free: 7.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.562e-05/0.1224, allocations: 31.61 kB / 355.1 MB, free: 7.789 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.1228, allocations: 282.5 kB / 355.4 MB, free: 7.477 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.1229, allocations: 4 kB / 355.4 MB, free: 7.473 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.178e-05/0.1229, allocations: 11.94 kB / 355.4 MB, free: 7.461 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003714/0.1233, allocations: 151.6 kB / 355.6 MB, free: 7.285 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1233, allocations: 0 / 355.6 MB, free: 7.285 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.1233, allocations: 4 kB / 355.6 MB, free: 7.281 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.1233, allocations: 0 / 355.6 MB, free: 7.281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.1234, allocations: 43.86 kB / 355.6 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.124, allocations: 382.4 kB / 356 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002543/0.1243, allocations: 111.9 kB / 356.1 MB, free: 6.672 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.1243, allocations: 0 / 356.1 MB, free: 6.672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.1246, allocations: 91.39 kB / 356.2 MB, free: 6.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.693e-06/0.1246, allocations: 0 / 356.2 MB, free: 6.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004025/0.125, allocations: 149.3 kB / 356.3 MB, free: 6.418 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.1251, allocations: 166.4 kB / 356.5 MB, free: 6.219 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004121/0.1255, allocations: 322.7 kB / 356.8 MB, free: 5.891 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.1256, allocations: 29.7 kB / 356.8 MB, free: 5.855 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.1257, allocations: 128.1 kB / 357 MB, free: 5.727 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/0.1258, allocations: 19.88 kB / 357 MB, free: 5.707 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.1258, allocations: 0 / 357 MB, free: 5.707 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1259, allocations: 330.8 kB / 357.3 MB, free: 5.375 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.923e-05/0.126, allocations: 23.98 kB / 357.3 MB, free: 5.352 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.1261, allocations: 86.86 kB / 357.4 MB, free: 5.242 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.347e-05/0.1262, allocations: 31.92 kB / 357.4 MB, free: 5.211 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1262, allocations: 3.938 kB / 357.5 MB, free: 5.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002374/0.1265, allocations: 125.6 kB / 357.6 MB, free: 5.078 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1265, allocations: 4 kB / 357.6 MB, free: 5.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1265, allocations: 12.02 kB / 357.6 MB, free: 5.062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.1266, allocations: 0 / 357.6 MB, free: 5.062 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.1267, allocations: 23.92 kB / 357.6 MB, free: 5.039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.1267, allocations: 0 / 357.6 MB, free: 5.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.494e-05/0.1268, allocations: 11.94 kB / 357.6 MB, free: 5.027 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.1268, allocations: 7.984 kB / 357.6 MB, free: 5.02 MB / 286.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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.127, allocations: 150 kB / 357.8 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.523e-05/0.1271, allocations: 69.34 kB / 357.8 MB, free: 4.789 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.022e-05/0.1271, allocations: 29.7 kB / 357.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1271, allocations: 3.953 kB / 357.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1272, allocations: 0 / 357.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1272, allocations: 4 kB / 357.9 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.1274, allocations: 229.6 kB / 358.1 MB, free: 4.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.1274, allocations: 4 kB / 358.1 MB, free: 4.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.793e-05/0.1275, allocations: 15.92 kB / 358.1 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.1275, allocations: 4.062 kB / 358.1 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.1275, allocations: 8 kB / 358.1 MB, free: 4.449 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1275, allocations: 3.938 kB / 358.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1275, allocations: 3.953 kB / 358.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.1278, allocations: 185.9 kB / 358.3 MB, free: 4.223 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.1279, allocations: 120.8 kB / 358.4 MB, free: 4.086 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.68e-05/0.128, allocations: 8 kB / 358.5 MB, free: 4.078 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.418e-05/0.1281, allocations: 4 kB / 358.5 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.1281, allocations: 8.031 kB / 358.5 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.1281, allocations: 7.984 kB / 358.5 MB, free: 4.059 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002402/0.1284, allocations: 241.9 kB / 358.7 MB, free: 3.824 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1284, allocations: 0 / 358.7 MB, free: 3.824 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.1287, allocations: 35.94 kB / 358.7 MB, free: 3.789 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001091/0.1298, allocations: 433.3 kB / 359.2 MB, free: 3.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002717/0.1301, allocations: 67.91 kB / 359.2 MB, free: 3.453 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.1301, allocations: 0 / 359.2 MB, free: 3.453 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.622e-05/0.1302, allocations: 35.92 kB / 359.3 MB, free: 3.418 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.1306, allocations: 60.84 kB / 359.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00075/0.1314, allocations: 388.2 kB / 359.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.1318, allocations: 0.74 MB / 360.4 MB, free: 2.18 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.1319, allocations: 37.77 kB / 360.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.42e-05/0.132, allocations: 23.44 kB / 360.5 MB, free: 2.113 MB / 286.1 MB Notification: Performance of SimCode: time 1.724e-06/0.132, allocations: 0 / 360.5 MB, free: 2.113 MB / 286.1 MB Notification: Performance of Templates: time 0.007397/0.1394, allocations: 2.582 MB / 363.1 MB, free: 15.56 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches