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.001342/0.001342, allocations: 98.77 kB / 16.5 MB, free: 6.641 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.001181/0.001181, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.415/1.415, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 43.81 kB / 300 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.124, allocations: 49.46 MB / 349.4 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004067/0.1282, allocations: 1.948 MB / 351.4 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.1302, allocations: 1.15 MB / 352.5 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.1304, allocations: 3.938 kB / 352.5 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003679/0.1308, allocations: 59.8 kB / 352.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.1311, allocations: 83.7 kB / 352.7 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008882/0.132, allocations: 237.5 kB / 352.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.1323, allocations: 167.5 kB / 353 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1325, allocations: 29.55 kB / 353.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.1326, allocations: 71.64 kB / 353.1 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.1328, allocations: 83.55 kB / 353.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.986e-05/0.1328, allocations: 4 kB / 353.2 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.133, allocations: 51.97 kB / 353.3 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.1331, allocations: 55.83 kB / 353.3 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.1333, allocations: 83.41 kB / 353.4 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.1337, allocations: 235.4 kB / 353.6 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.1337, allocations: 0 / 353.6 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1337, allocations: 0 / 353.6 MB, free: 388 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1337, allocations: 4 kB / 353.7 MB, free: 384 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.001012/0.1347, allocations: 0.535 MB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/0.1348, allocations: 15.97 kB / 354.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.1349, allocations: 20.66 kB / 354.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004436/0.1354, allocations: 291.6 kB / 354.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.1354, allocations: 8.375 kB / 354.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.1354, allocations: 12.12 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005138/0.1359, allocations: 183.6 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.136, allocations: 0 / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.136, allocations: 7.984 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.136, allocations: 4 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001541/0.1362, allocations: 43.91 kB / 354.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006903/0.1369, allocations: 395.2 kB / 355.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003287/0.1372, allocations: 134.5 kB / 355.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.1374, allocations: 71.34 kB / 355.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.1374, allocations: 4 kB / 355.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.1377, allocations: 75.38 kB / 355.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.973e-06/0.1377, allocations: 7.938 kB / 355.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004999/0.1382, allocations: 169.2 kB / 355.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001574/0.1384, allocations: 183.9 kB / 355.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003944/0.1388, allocations: 334.6 kB / 356.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1388, allocations: 29.7 kB / 356.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.1389, allocations: 140.7 kB / 356.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.139, allocations: 15.75 kB / 356.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.059e-05/0.1391, allocations: 41.7 kB / 356.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.1393, allocations: 334.8 kB / 356.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.323e-05/0.1394, allocations: 27.98 kB / 356.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.1395, allocations: 100.6 kB / 356.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.1397, allocations: 105.9 kB / 356.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1397, allocations: 0 / 356.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003145/0.14, allocations: 133.6 kB / 357 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1401, allocations: 8 kB / 357 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1401, allocations: 4 kB / 357 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.1401, allocations: 7.984 kB / 357 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.1402, allocations: 19.94 kB / 357.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.1403, allocations: 8.188 kB / 357.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.541e-05/0.1404, allocations: 11.92 kB / 357.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.1404, allocations: 4 kB / 357.1 MB, free: 12.56 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.0001796/0.1406, allocations: 149.8 kB / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.1407, allocations: 81.34 kB / 357.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.556e-05/0.1408, allocations: 29.7 kB / 357.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.1408, allocations: 0 / 357.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.1408, allocations: 8.094 kB / 357.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1408, allocations: 7.875 kB / 357.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002431/0.1411, allocations: 245.6 kB / 357.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1411, allocations: 0 / 357.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.434e-05/0.1412, allocations: 27.92 kB / 357.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1412, allocations: 3.938 kB / 357.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.1412, allocations: 4 kB / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.1412, allocations: 0 / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1412, allocations: 0 / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.1415, allocations: 187.3 kB / 357.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.1417, allocations: 116.8 kB / 357.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.1417, allocations: 0 / 357.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.288e-05/0.1418, allocations: 7.984 kB / 357.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.1419, allocations: 8 kB / 357.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.1419, allocations: 11.92 kB / 357.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002347/0.1421, allocations: 249.9 kB / 358.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1421, allocations: 0 / 358.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1424, allocations: 35.98 kB / 358.2 MB, free: 11.3 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.001033/0.1435, allocations: 422.3 kB / 358.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003/0.1438, allocations: 84.14 kB / 358.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1438, allocations: 8.062 kB / 358.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.1439, allocations: 31.97 kB / 358.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.1444, allocations: 76.77 kB / 358.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008013/0.1452, allocations: 443.4 kB / 359.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.1456, allocations: 0.7401 MB / 360 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.1457, allocations: 33.77 kB / 360 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.477e-05/0.1458, allocations: 27.44 kB / 360.1 MB, free: 9.547 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1458, allocations: 3.938 kB / 360.1 MB, free: 9.543 MB / 302.1 MB Notification: Performance of Templates: time 0.008868/0.1547, allocations: 2.92 MB / 363 MB, free: 6.656 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/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