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.001531/0.001532, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001764/0.001764, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.597/1.597, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 59.84 kB / 306.9 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1224, allocations: 50.53 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00524/0.1277, allocations: 1.899 MB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002484/0.1302, allocations: 1.208 MB / 360.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002528/0.1305, allocations: 7.938 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007603/0.1313, allocations: 151.5 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005942/0.1319, allocations: 159.3 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000713/0.1326, allocations: 166.9 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.133, allocations: 191.5 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.1332, allocations: 29.53 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.1334, allocations: 79.7 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.1335, allocations: 75.62 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.1336, allocations: 8 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.1338, allocations: 59.91 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.1339, allocations: 35.91 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.134, allocations: 79.47 kB / 361.6 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003852/0.1344, allocations: 211.5 kB / 361.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.1344, allocations: 0 / 361.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1344, allocations: 0 / 361.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1345, allocations: 0 / 361.8 MB, free: 9.762 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.000922/0.1354, allocations: 0.5118 MB / 362.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1354, allocations: 12.03 kB / 362.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.602e-05/0.1355, allocations: 20.66 kB / 362.3 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.1359, allocations: 270.8 kB / 362.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.1359, allocations: 4.375 kB / 362.6 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.1359, allocations: 8.125 kB / 362.6 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.1363, allocations: 150.7 kB / 362.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.1363, allocations: 4 kB / 362.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.1363, allocations: 7.938 kB / 362.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.1364, allocations: 0 / 362.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.1365, allocations: 35.92 kB / 362.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005217/0.137, allocations: 358.4 kB / 363.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.1372, allocations: 107.9 kB / 363.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.622e-05/0.1373, allocations: 46.56 kB / 363.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.1374, allocations: 7.938 kB / 363.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001763/0.1376, allocations: 75.39 kB / 363.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.194e-06/0.1376, allocations: 0 / 363.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003695/0.138, allocations: 137.4 kB / 363.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.886e-05/0.1381, allocations: 140.5 kB / 363.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002857/0.1384, allocations: 268.9 kB / 363.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.1384, allocations: 37.69 kB / 364 MB, free: 7.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.824e-05/0.1385, allocations: 116.2 kB / 364.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.1385, allocations: 19.75 kB / 364.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.1386, allocations: 33.89 kB / 364.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1387, allocations: 334.8 kB / 364.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.504e-05/0.1388, allocations: 23.98 kB / 364.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.23e-05/0.1389, allocations: 62 kB / 364.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.139, allocations: 80.25 kB / 364.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.139, allocations: 0 / 364.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002278/0.1393, allocations: 113.4 kB / 364.7 MB, free: 6.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1393, allocations: 8 kB / 364.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1393, allocations: 0 / 364.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1393, allocations: 8.125 kB / 364.8 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.901e-05/0.1394, allocations: 15.94 kB / 364.8 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.1394, allocations: 7.984 kB / 364.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.206e-05/0.1395, allocations: 11.84 kB / 364.8 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.1395, allocations: 4 kB / 364.8 MB, free: 6.434 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.0001379/0.1397, allocations: 141.8 kB / 364.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.389e-05/0.1398, allocations: 61.44 kB / 365 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.522e-05/0.1398, allocations: 21.78 kB / 365 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1399, allocations: 8 kB / 365 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1399, allocations: 320 / 365 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1399, allocations: 7.922 kB / 365 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.1401, allocations: 229.4 kB / 365.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.1401, allocations: 4 kB / 365.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.767e-05/0.1401, allocations: 4 kB / 365.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1402, allocations: 0 / 365.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.1402, allocations: 11.98 kB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1402, allocations: 0 / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1402, allocations: 0 / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.1404, allocations: 158.5 kB / 365.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.46e-05/0.1405, allocations: 108.9 kB / 365.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.1406, allocations: 7.938 kB / 365.5 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.842e-05/0.1407, allocations: 11.94 kB / 365.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.1407, allocations: 7.969 kB / 365.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.1407, allocations: 11.94 kB / 365.6 MB, free: 5.547 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001982/0.1409, allocations: 204.5 kB / 365.8 MB, free: 5.344 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1409, allocations: 0 / 365.8 MB, free: 5.344 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1412, allocations: 27.91 kB / 365.8 MB, free: 5.316 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.0009911/0.1422, allocations: 409.9 kB / 366.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002327/0.1424, allocations: 68.09 kB / 366.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1425, allocations: 8 kB / 366.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.538e-05/0.1425, allocations: 20 kB / 366.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004096/0.143, allocations: 73.48 kB / 366.4 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006142/0.1436, allocations: 320.8 kB / 366.7 MB, free: 4.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.1439, allocations: 0.7319 MB / 367.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.144, allocations: 25.52 kB / 367.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.729e-05/0.1441, allocations: 19.44 kB / 367.5 MB, free: 3.738 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1441, allocations: 3.938 kB / 367.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of Templates: time 0.006765/0.1509, allocations: 2.475 MB / 369.9 MB, free: 1.281 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