Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001516/0.001516, allocations: 107.1 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001703/0.001703, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 59.91 kB / 306.4 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1253, allocations: 50.52 MB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.004038/0.1294, allocations: 1.961 MB / 358.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.1317, allocations: 1.177 MB / 360.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/0.132, allocations: 7.938 kB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008287/0.1329, allocations: 147.3 kB / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005712/0.1335, allocations: 135.6 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006433/0.1341, allocations: 155.7 kB / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002958/0.1344, allocations: 195.5 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.1346, allocations: 41.52 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.1347, allocations: 75.64 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.1349, allocations: 71.69 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.1349, allocations: 12 kB / 360.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.1351, allocations: 63.89 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.491e-05/0.1352, allocations: 43.84 kB / 361 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.467e-05/0.1353, allocations: 71.48 kB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.1356, allocations: 207.5 kB / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1356, allocations: 0 / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.1356, allocations: 4 kB / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1356, allocations: 4 kB / 361.3 MB, free: 10.05 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.0009041/0.1365, allocations: 0.5117 MB / 361.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1366, allocations: 8.031 kB / 361.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.871e-05/0.1367, allocations: 24.66 kB / 361.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.137, allocations: 262.8 kB / 362.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.137, allocations: 4.375 kB / 362.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.1371, allocations: 12.12 kB / 362.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003551/0.1374, allocations: 146.7 kB / 362.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1375, allocations: 0 / 362.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.1375, allocations: 0 / 362.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.1375, allocations: 4 kB / 362.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.1376, allocations: 31.92 kB / 362.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004936/0.1381, allocations: 370.3 kB / 362.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.1383, allocations: 107.9 kB / 362.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.694e-05/0.1384, allocations: 46.56 kB / 362.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.1385, allocations: 3.984 kB / 362.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001788/0.1387, allocations: 71.38 kB / 362.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.974e-06/0.1387, allocations: 4 kB / 362.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000374/0.1391, allocations: 145.5 kB / 363 MB, free: 8.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/0.1391, allocations: 128.5 kB / 363.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002835/0.1394, allocations: 276.9 kB / 363.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.1395, allocations: 25.7 kB / 363.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.173e-05/0.1395, allocations: 120.1 kB / 363.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.1396, allocations: 20 kB / 363.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.1397, allocations: 41.64 kB / 363.6 MB, free: 7.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1398, allocations: 326.8 kB / 364 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.14, allocations: 24.05 kB / 364 MB, free: 7.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.773e-05/0.14, allocations: 73.94 kB / 364 MB, free: 6.992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.1402, allocations: 76.25 kB / 364.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1402, allocations: 0 / 364.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002355/0.1404, allocations: 113.4 kB / 364.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1405, allocations: 10.94 kB / 364.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.1405, allocations: 4 kB / 364.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.1405, allocations: 0 / 364.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.905e-05/0.1406, allocations: 15.94 kB / 364.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.1406, allocations: 0 / 364.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.951e-05/0.1407, allocations: 19.83 kB / 364.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.1407, allocations: 4 kB / 364.3 MB, free: 6.734 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,sample1.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 (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.0001241/0.1408, allocations: 145.8 kB / 364.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.75e-05/0.1409, allocations: 69.39 kB / 364.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.955e-05/0.1409, allocations: 25.7 kB / 364.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.141, allocations: 0 / 364.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.141, allocations: 4 kB / 364.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.141, allocations: 3.938 kB / 364.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.1412, allocations: 233.5 kB / 364.8 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1412, allocations: 4 kB / 364.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.792e-05/0.1412, allocations: 7.938 kB / 364.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1412, allocations: 0 / 364.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.1412, allocations: 4 kB / 364.8 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.079e-05/0.1413, allocations: 12.11 kB / 364.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1413, allocations: 0 / 364.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002219/0.1415, allocations: 158.5 kB / 364.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.449e-05/0.1416, allocations: 100.9 kB / 365 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.1416, allocations: 11.92 kB / 365.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.653e-05/0.1417, allocations: 4 kB / 365.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.645e-05/0.1417, allocations: 8 kB / 365.1 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.1418, allocations: 11.92 kB / 365.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000191/0.142, allocations: 200.5 kB / 365.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.142, allocations: 0 / 365.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.1422, allocations: 35.91 kB / 365.3 MB, free: 5.605 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (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.0009/0.1431, allocations: 407.3 kB / 365.7 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002156/0.1434, allocations: 71.86 kB / 365.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1434, allocations: 0 / 365.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.866e-05/0.1434, allocations: 27.98 kB / 365.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.1439, allocations: 70.55 kB / 365.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.1445, allocations: 357.1 kB / 366.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.1448, allocations: 0.7319 MB / 367 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.161e-05/0.1449, allocations: 25.52 kB / 367 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.019e-05/0.145, allocations: 23.42 kB / 367 MB, free: 3.988 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.145, allocations: 3.938 kB / 367 MB, free: 3.984 MB / 302.1 MB Notification: Performance of Templates: time 0.00587/0.1509, allocations: 2.438 MB / 369.4 MB, free: 1.57 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches