Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 104 kB / 17.59 MB, free: 5.559 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.001448/0.001448, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.467/1.467, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 51.47 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1211, allocations: 49.44 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004257/0.1254, allocations: 1.899 MB / 352.6 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.1276, allocations: 1.161 MB / 353.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002369/0.1279, allocations: 3.938 kB / 353.8 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000385/0.1283, allocations: 71.67 kB / 353.9 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003736/0.1287, allocations: 95.58 kB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009745/0.1297, allocations: 261.4 kB / 354.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003275/0.13, allocations: 179.5 kB / 354.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.1302, allocations: 37.47 kB / 354.4 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.1304, allocations: 87.62 kB / 354.5 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.1305, allocations: 79.62 kB / 354.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.1306, allocations: 12 kB / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.1308, allocations: 55.97 kB / 354.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.1309, allocations: 59.81 kB / 354.7 MB, free: 412 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.131, allocations: 83.36 kB / 354.8 MB, free: 328 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004565/0.1315, allocations: 239.5 kB / 355 MB, free: 88 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1315, allocations: 0 / 355 MB, free: 88 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1315, allocations: 0 / 355 MB, free: 88 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.1315, allocations: 0 / 355 MB, free: 88 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009138/0.1324, allocations: 0.5506 MB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1325, allocations: 11.89 kB / 355.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.45e-05/0.1326, allocations: 24.66 kB / 355.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004049/0.133, allocations: 287.6 kB / 355.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.133, allocations: 4.375 kB / 355.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.1331, allocations: 12.12 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003999/0.1335, allocations: 180.3 kB / 356.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1335, allocations: 0 / 356.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.1335, allocations: 8 kB / 356.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.1335, allocations: 0 / 356.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.1337, allocations: 43.91 kB / 356.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000582/0.1343, allocations: 391.2 kB / 356.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.1345, allocations: 150.5 kB / 356.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.1346, allocations: 51.42 kB / 356.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.1347, allocations: 12.05 kB / 356.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002666/0.135, allocations: 79.33 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.505e-06/0.135, allocations: 0 / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005024/0.1355, allocations: 169.3 kB / 357 MB, free: 13.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.1356, allocations: 196.2 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.136, allocations: 334.7 kB / 357.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.136, allocations: 29.7 kB / 357.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1361, allocations: 128.3 kB / 357.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.1362, allocations: 19.73 kB / 357.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.048e-05/0.1362, allocations: 37.7 kB / 357.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1364, allocations: 338.8 kB / 358 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.721e-05/0.1364, allocations: 27.98 kB / 358.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.1366, allocations: 96.58 kB / 358.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.1368, allocations: 109.9 kB / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1368, allocations: 0 / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002695/0.137, allocations: 137.6 kB / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.1371, allocations: 7.938 kB / 358.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1371, allocations: 8.172 kB / 358.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1371, allocations: 4 kB / 358.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.1373, allocations: 27.92 kB / 358.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.1373, allocations: 4 kB / 358.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.364e-05/0.1374, allocations: 11.92 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.1374, allocations: 8 kB / 358.5 MB, free: 12.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001522/0.1375, allocations: 154.3 kB / 358.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1377, allocations: 81.38 kB / 358.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.073e-05/0.1377, allocations: 29.7 kB / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1378, allocations: 4 kB / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1378, allocations: 0 / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1378, allocations: 3.938 kB / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.138, allocations: 245.5 kB / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.138, allocations: 0 / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.038e-05/0.1381, allocations: 19.98 kB / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1381, allocations: 0 / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.1381, allocations: 4 kB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1381, allocations: 3.938 kB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.1381, allocations: 8.062 kB / 359 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/0.1384, allocations: 179.3 kB / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.1386, allocations: 116.8 kB / 359.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.1386, allocations: 4 kB / 359.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.356e-05/0.1387, allocations: 12 kB / 359.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.1388, allocations: 7.984 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.1388, allocations: 7.938 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002337/0.139, allocations: 245.9 kB / 359.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.139, allocations: 0 / 359.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003283/0.1394, allocations: 32 kB / 359.6 MB, free: 11.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001027/0.1404, allocations: 435.5 kB / 360 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002802/0.1407, allocations: 91.89 kB / 360.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1407, allocations: 0 / 360.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.65e-05/0.1408, allocations: 31.92 kB / 360.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.1413, allocations: 84.59 kB / 360.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007006/0.142, allocations: 428.1 kB / 360.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.1423, allocations: 0.7437 MB / 361.4 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.291e-05/0.1424, allocations: 27.42 kB / 361.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1424, allocations: 4 kB / 361.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of Templates: time 0.006122/0.1485, allocations: 3.075 MB / 364.5 MB, free: 6.223 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches