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.001212/0.001212, allocations: 111.6 kB / 17.68 MB, free: 5.332 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.001088/0.001088, allocations: 192 kB / 18.62 MB, free: 4.41 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.476/1.476, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 47.11 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.133, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003707/0.1368, allocations: 1.903 MB / 353.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.1388, allocations: 1.157 MB / 354.6 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.1389, allocations: 7.938 kB / 354.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.1393, allocations: 67.67 kB / 354.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002671/0.1396, allocations: 91.59 kB / 354.7 MB, free: 444 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007571/0.1403, allocations: 270.2 kB / 355 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002701/0.1406, allocations: 179.5 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.1408, allocations: 29.5 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.1409, allocations: 79.69 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.141, allocations: 83.61 kB / 355.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.1411, allocations: 12 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.1412, allocations: 67.89 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.943e-05/0.1413, allocations: 47.83 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.392e-05/0.1414, allocations: 87.41 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.1418, allocations: 247.1 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1418, allocations: 4 kB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1418, allocations: 0 / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1418, allocations: 0 / 355.8 MB, free: 15.35 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000843/0.1426, allocations: 0.5428 MB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1427, allocations: 11.89 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.467e-05/0.1428, allocations: 24.66 kB / 356.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.1432, allocations: 299.5 kB / 356.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.1432, allocations: 8.375 kB / 356.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.473e-05/0.1433, allocations: 12.11 kB / 356.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.1436, allocations: 183.4 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/0.1437, allocations: 7.938 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.1437, allocations: 4 kB / 356.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1437, allocations: 0 / 356.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.1438, allocations: 39.92 kB / 356.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005363/0.1444, allocations: 399.1 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.1447, allocations: 138.5 kB / 357.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.1448, allocations: 63.42 kB / 357.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.1448, allocations: 7.875 kB / 357.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.145, allocations: 79.38 kB / 357.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.753e-06/0.145, allocations: 0 / 357.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004264/0.1454, allocations: 177.2 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.1456, allocations: 183.9 kB / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003586/0.1459, allocations: 334.7 kB / 358.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.146, allocations: 33.7 kB / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.1461, allocations: 128.2 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.1461, allocations: 24.19 kB / 358.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.1462, allocations: 37.7 kB / 358.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1463, allocations: 338.8 kB / 358.8 MB, free: 12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.547e-05/0.1464, allocations: 23.98 kB / 358.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.1466, allocations: 100.6 kB / 358.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.1467, allocations: 101.9 kB / 359 MB, free: 11.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1467, allocations: 0 / 359 MB, free: 11.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002526/0.147, allocations: 141.2 kB / 359.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.147, allocations: 8 kB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.147, allocations: 0 / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1471, allocations: 4 kB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.1472, allocations: 23.92 kB / 359.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.1472, allocations: 4 kB / 359.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.581e-05/0.1473, allocations: 12.12 kB / 359.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.1473, allocations: 11.94 kB / 359.2 MB, free: 11.52 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.0001547/0.1475, allocations: 158.3 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.1476, allocations: 77.36 kB / 359.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.317e-05/0.1477, allocations: 29.7 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1477, allocations: 0 / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.1477, allocations: 7.984 kB / 359.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1477, allocations: 3.938 kB / 359.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.1479, allocations: 241.9 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1479, allocations: 4 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.537e-05/0.148, allocations: 23.92 kB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.148, allocations: 0 / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.148, allocations: 4 kB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1481, allocations: 0 / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1481, allocations: 3.984 kB / 359.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.1484, allocations: 195.2 kB / 360 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.1485, allocations: 112.8 kB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.1485, allocations: 11.98 kB / 360.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.477e-05/0.1486, allocations: 0 / 360.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.71e-05/0.1487, allocations: 16.02 kB / 360.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.1487, allocations: 15.88 kB / 360.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002512/0.149, allocations: 241.9 kB / 360.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.149, allocations: 4 kB / 360.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.1493, allocations: 39.98 kB / 360.4 MB, free: 10.25 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.001136/0.1504, allocations: 415.5 kB / 360.8 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002773/0.1507, allocations: 83.84 kB / 360.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1507, allocations: 0 / 360.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.986e-05/0.1508, allocations: 28.36 kB / 360.9 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004709/0.1513, allocations: 87.88 kB / 361 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007415/0.152, allocations: 389.8 kB / 361.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.1525, allocations: 0.744 MB / 362.1 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.357e-05/0.1526, allocations: 33.45 kB / 362.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.152e-05/0.1527, allocations: 19.44 kB / 362.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1527, allocations: 0 / 362.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of Templates: time 0.007977/0.1606, allocations: 3.053 MB / 365.2 MB, free: 5.535 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 -s cvode -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