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.001914/0.001915, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002024/0.002024, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 60.03 kB / 306.3 MB, free: 1.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1192, allocations: 50.53 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003655/0.1229, allocations: 1.957 MB / 358.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.1248, allocations: 1.2 MB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.1249, allocations: 4 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006539/0.1256, allocations: 143.6 kB / 360.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.126, allocations: 127.6 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004455/0.1264, allocations: 155.5 kB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00025/0.1267, allocations: 191.4 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1268, allocations: 37.52 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.127, allocations: 67.66 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.1271, allocations: 67.69 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.1272, allocations: 4 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.1273, allocations: 47.95 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.1274, allocations: 43.78 kB / 360.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1275, allocations: 63.48 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.1279, allocations: 215.6 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1279, allocations: 0 / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1279, allocations: 0 / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.587e-06/0.1279, allocations: 0 / 361.1 MB, free: 10.2 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.0009841/0.1289, allocations: 0.5027 MB / 361.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.129, allocations: 11.97 kB / 361.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.672e-05/0.1291, allocations: 24.66 kB / 361.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.1295, allocations: 270.8 kB / 361.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.1295, allocations: 4.375 kB / 361.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.1295, allocations: 12.12 kB / 361.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003809/0.1299, allocations: 142.7 kB / 362 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1299, allocations: 0 / 362 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.13, allocations: 8 kB / 362.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.13, allocations: 0 / 362.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.1301, allocations: 39.91 kB / 362.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/0.1307, allocations: 358.4 kB / 362.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.1309, allocations: 115.8 kB / 362.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.675e-05/0.131, allocations: 42.56 kB / 362.6 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.1311, allocations: 0 / 362.6 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.1313, allocations: 83.33 kB / 362.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.1313, allocations: 0 / 362.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004001/0.1317, allocations: 141.3 kB / 362.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.1318, allocations: 132.5 kB / 362.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003038/0.1321, allocations: 276.9 kB / 363.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.1322, allocations: 33.95 kB / 363.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1323, allocations: 116.1 kB / 363.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.711e-05/0.1323, allocations: 15.75 kB / 363.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.507e-05/0.1324, allocations: 33.7 kB / 363.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1325, allocations: 330.8 kB / 363.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.217e-05/0.1326, allocations: 27.92 kB / 363.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.861e-05/0.1327, allocations: 66 kB / 363.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.1328, allocations: 80.16 kB / 363.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1329, allocations: 4 kB / 363.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002084/0.1331, allocations: 109.5 kB / 364 MB, free: 6.934 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1331, allocations: 8 kB / 364 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1331, allocations: 0 / 364 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.1331, allocations: 0 / 364 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.161e-05/0.1332, allocations: 19.94 kB / 364 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.1332, allocations: 3.984 kB / 364 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.102e-05/0.1333, allocations: 11.84 kB / 364.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.1333, allocations: 4 kB / 364.1 MB, free: 6.887 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.000143/0.1335, allocations: 149.9 kB / 364.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.604e-05/0.1336, allocations: 69.42 kB / 364.3 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.8e-05/0.1336, allocations: 21.72 kB / 364.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1337, allocations: 4 kB / 364.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1337, allocations: 0 / 364.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1337, allocations: 7.922 kB / 364.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.1339, allocations: 233.5 kB / 364.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1339, allocations: 0 / 364.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.57e-05/0.134, allocations: 4.312 kB / 364.5 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.134, allocations: 4.062 kB / 364.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.134, allocations: 19.92 kB / 364.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.134, allocations: 0 / 364.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.134, allocations: 3.984 kB / 364.6 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.1343, allocations: 154.5 kB / 364.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.412e-05/0.1344, allocations: 105 kB / 364.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.15e-05/0.1344, allocations: 11.94 kB / 364.8 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.875e-05/0.1345, allocations: 4 kB / 364.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.608e-05/0.1345, allocations: 7.984 kB / 364.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.1346, allocations: 11.88 kB / 364.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002109/0.1348, allocations: 204.5 kB / 365.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1348, allocations: 0 / 365.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000251/0.135, allocations: 27.91 kB / 365.1 MB, free: 5.754 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.001054/0.1361, allocations: 413.4 kB / 365.5 MB, free: 5.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002129/0.1363, allocations: 67.86 kB / 365.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1363, allocations: 0 / 365.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.485e-05/0.1364, allocations: 31.97 kB / 365.6 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004001/0.1368, allocations: 53.52 kB / 365.6 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005753/0.1374, allocations: 362.8 kB / 366 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.1378, allocations: 0.7283 MB / 366.7 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.963e-05/0.1378, allocations: 21.53 kB / 366.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.1379, allocations: 27.44 kB / 366.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1379, allocations: 0 / 366.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of Templates: time 0.006477/0.1444, allocations: 2.364 MB / 369.1 MB, free: 1.797 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